Skip to content

Commit

Permalink
fix(checkbox): convert css values to variables
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflips committed Apr 21, 2023
1 parent 39ce4a6 commit 4232d41
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions libs/core/src/components/sage-checkbox/sage-checkbox.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
:host {
--border-color: #D3D5D9;
--border-radius: 4px;
--checkbox-size: 16px;
--checked-color: #040506;
--disabled-color: #ECEEEF;
--disabled-background-color: #F6F8F8;
--disabled-border-color: #8D939A;
--disabled-color: #ECEEEF;
--disabled-message-color: #B5BAC0;
--focus-color: #8ECAFB;
--hover-background-color: #F9FAFA;
--hover-border-color: #B5BAC0;
--icon-color: #FFF;
--invalid-color: #CF3C32;
--invalid-focus-color: #FDB0AA;
--focus-color: #8ECAFB;
--message-color: #60666C;
}

Expand Down Expand Up @@ -52,11 +55,11 @@
input {
appearance: none;
border: 1px solid var(--border-color);
border-radius: 4px;
height: 16px;
border-radius: var(--border-radius);
height: var(--checkbox-size);
margin: 0;
position: relative;
width: 16px;
width: var(--checkbox-size);

&:hover {
background: var(--hover-background-color);
Expand All @@ -68,7 +71,7 @@ input {
border-color: var(--checked-color);

&::after {
border: 1px solid #FFF;
border: 1px solid var(--icon-color);
border-left: 0;
border-top: 0;
content: "";
Expand Down

0 comments on commit 4232d41

Please sign in to comment.