{"id":54,"date":"2018-04-27T14:55:51","date_gmt":"2018-04-27T14:55:51","guid":{"rendered":"https:\/\/sites.neoninspire.com\/style-guide\/?page_id=54"},"modified":"2019-04-10T16:09:33","modified_gmt":"2019-04-10T16:09:33","slug":"checkbox","status":"publish","type":"page","link":"https:\/\/sites.neoninspire.com\/style-guide\/components\/checkbox\/","title":{"rendered":"Checkbox *"},"content":{"rendered":"\n\t<p>Components<\/p>\n<h1>\n\t\tCheckbox\n\t<\/h1>\n<h4>\n\t\tA Checkbox is a UI element that allows users to switch between two mutually exclusive options (checked or unchecked, on or off) through a single click or tap. It can also be used to indicate a subordinate setting or preference when paired with another control.\n\t<\/h4>\n<h4>\n\t\t<a href=\"#\" title=\"Checkbox Default (Unchecked)\" target=\"_self\" rel=\"noopener noreferrer\">\n\t\tCheckbox Default (Unchecked)\n\t\t<\/a>\n\t<\/h4>\n\t\n      &lt;el-checkbox-group v-model=&#8221;field.selectedValue&#8221;&gt;\n        &lt;el-checkbox v-for=&#8221;typeOptions in types[field.typeName]&#8221; :label=&#8221;typeOptions.name&#8221; :key=&#8221;typeOptions.name&#8221;&gt;{{typeOptions.name}}&lt;\/el-checkbox&gt;\n      &lt;\/el-checkbox-group&gt;\n\/* Form &#8211; Checkbox *\/\n.neon_form_checkbox_group.el-checkbox-group {\n  display: inline-grid;\n}\n.neon_form_checkbox .el-checkbox__inner {\n  width: 20px;\n  height: 20px;\n  background-color: #fff;\n  border-color: #A8B7C7;\n}\n.neon_form_checkbox .el-checkbox__input.is-checked .el-checkbox__inner, .el-checkbox__input.is-indeterminate .el-checkbox__inner {\n  background-color: #fff;\n  border-color: #A8B7C7;\n}\n.neon_form_checkbox .el-checkbox__inner:hover {\n  background-color: #fff;\n  border-color: #A8B7C7;\n}\n.neon_form_checkbox .el-checkbox__inner:after {\n  box-sizing: content-box;\n  content: &#8220;&#8221;;\n  border: 2px solid #54698D;\n  border-left: 0;\n  border-top: 0;\n  height: 12px;\n  left: 5px;\n  top: 0;\n  position: absolute;\n  transform: rotate(45deg) scaleY(0);\n  width: 6px;\n  transition: transform .15s ease-in .05s;\n  transform-origin: center;\n}\n.neon_form_checkbox .el-checkbox__input.is-checked .el-checkbox__inner:after {\n  transform: rotate(45deg) scaleY(1);\n}\n.neon_form_checkbox .el-checkbox__label {\n  font-family: Lato;\n  font-weight: 400;\n  font-size: 14px;\n  color: #54698D;\n  letter-spacing: 0;\n}\n.neon_form_checkbox .el-checkbox__input.is-checked+.neon_form_checkbox .el-checkbox__label {\n  font-weight: 700;\n  color: #54698D;\n}\n.neon_form_checkbox.el-checkbox+.neon_form_checkbox.el-checkbox {\n  margin-left: 15px;\n}\n.neon_form_checkbox.el-checkbox {\n  margin-left: 15px;\n}\n\n<h2>\n\t\tStates\n\t<\/h2>\n\t<p>There are 4 different states for the checkbox;<\/p>\n<ul>\n<li>unchecked (default)<\/li>\n<li>checked<\/li>\n<li>checked and disabled<\/li>\n<li>unchecked and disabled<\/li>\n<\/ul>\n<h4>\n\t\t<a href=\"#\" title=\"Checked\" target=\"_self\" rel=\"noopener noreferrer\">\n\t\tChecked\n\t\t<\/a>\n\t<\/h4>\n\t<p>Use primary buttons for call-to-actions; important prompts that you want to emphasize to our users.<\/p>\n\t<!DOCTYPE html>\n<html>\n<title>color-code.CSS<\/title>\n<meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n<body>\n.checkbox-text-checked {\nfont-family: Lato-Bold;\nfont-size: 14px;\ncolor: #54698D;\nletter-spacing: 0;\nline-height: 17px;\n}\n\n<\/body>\n<\/html>\n\t.checkbox-box-checked{\nheight: 20px; \nwidth: 20px; \nbackground: #FFFFFF;\nborder: 1px solid #A8B7C7;\nborder-radius: 2px;\npadding-right: 10px;\n}\n\n\t.checkbox-icon{\ncolor: #0070D2; \ncontent: &#8220;fa-square-full&#8221;; \n}\n\n<h4>\n\t\t<a href=\"#\" title=\"Checked and disabled\" target=\"_self\" rel=\"noopener noreferrer\">\n\t\tChecked and disabled\n\t\t<\/a>\n\t<\/h4>\n\t<p>Use primary buttons for call-to-actions; important prompts that you want to emphasize to our users.<\/p>\n\t.checkbox-text-checked-disabled {\nopacity: 50%; \n}\n\n\t.checkbox-box-checked-disabled {\nopacity: 50%; \n}\n\n\t.checkbox-icon{\nopacity: 50%; \n}\n\n<h4>\n\t\t<a href=\"#\" title=\"Unchecked and disabled\" target=\"_self\" rel=\"noopener noreferrer\">\n\t\tUnchecked and disabled\n\t\t<\/a>\n\t<\/h4>\n\t<p>Use primary buttons for call-to-actions; important prompts that you want to emphasize to our users.<\/p>\n\t.checkbox-text-disabled {\nopacity: 50%; \n}\n\n.checkbox-box-disabled{\nopacity: 50%; \n}\n\n<h2>\n\t\tOverview of CSS Classes\n\t<\/h2>\n<h5>\n\t\tSelector\n\t<\/h5>\n<h5>\n\t\tSummary\n\t<\/h5>\n<h5>\n\t\tParent Selector\n\t<\/h5>\n\t<p><em>.checkbox-text<\/em><\/p>\n\t<p><em>.checkbox-box<\/em><\/p>\n\t<p><em>.checkbox-text-checked<\/em><\/p>\n\t<p><em>.checkbox-box-checked<\/em><\/p>\n\t<p><em>.checkbox-text-checked-disabled<\/em><\/p>\n\t<p><em>.checkbox-box-checked-disabled<\/em><\/p>\n\t<p><em>.checkbox-text-disabled<\/em><\/p>\n\t<p><em>.checkbox-box-disabled<\/em><\/p>\n\t<p>default text label for checkbox<\/p>\n\t<p>default checkbox\u00a0<\/p>\n\t<p>text label used when a checkbox has been selected<\/p>\n\t<p>selected checkbox\u00a0<\/p>\n\t<p>text label used when a checkbox has been selected but has been disabled<\/p>\n\t<p>checkbox used when an item is selected but disabled for the user<\/p>\n\t<p>text label used when item is disabled<\/p>\n\t<p>checkbox has been disabled and unchecked<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Components Checkbox A Checkbox is a UI element that allows users to switch between two mutually exclusive options (checked or unchecked, on or off) through a single click or tap. It can also be used to indicate a subordinate setting or preference when paired with another control. Checkbox Default (Unchecked) &lt;el-checkbox-group v-model=&#8221;field.selectedValue&#8221;&gt; &lt;el-checkbox v-for=&#8221;typeOptions in&hellip;<\/p>\n","protected":false},"author":32,"featured_media":0,"parent":380,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"class_list":["post-54","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/pages\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/users\/32"}],"replies":[{"embeddable":true,"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":21,"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/pages\/54\/revisions"}],"predecessor-version":[{"id":1430,"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/pages\/54\/revisions\/1430"}],"up":[{"embeddable":true,"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/pages\/380"}],"wp:attachment":[{"href":"https:\/\/sites.neoninspire.com\/style-guide\/wp-json\/wp\/v2\/media?parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}