Skip to content

Commit

Permalink
fix(Checkbox): scale checkbox with user base font
Browse files Browse the repository at this point in the history
  • Loading branch information
akdetrick committed Jun 3, 2024
1 parent 1498b21 commit 55269a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 15 deletions.
4 changes: 0 additions & 4 deletions src/Button/index.scss
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
@import "./spinner.scss";

@function rem($pxValue) {
@return #{$pxValue / 16px * 1rem};
}

.nds-button,
.nds-button.resetButton {
display: inline-flex;
Expand Down
22 changes: 11 additions & 11 deletions src/Checkbox/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@

.narmi-icon-minus,
.narmi-icon-check {
height: 18px;
width: 18px;
line-height: 18px;
font-size: 15px;
height: rem(18px);
width: rem(18px);
line-height: rem(18px);
font-size: rem(15px);
background-color: white;
font-weight: bold;
border-radius: 3px;
border-radius: rem(3px);
border: 1px solid var(--color-lightGrey);
color: white;
text-align: center;
Expand Down Expand Up @@ -120,10 +120,10 @@
.nds-checkbox--table {
.narmi-icon-minus,
.narmi-icon-check {
height: 16px;
width: 16px;
line-height: 16px;
font-size: 12px;
height: var(--font-size-default);
width: var(--font-size-default);
line-height: var(--font-size-default);
font-size: var(--font-size-default);
}

.nds-checkbox-label {
Expand All @@ -140,8 +140,8 @@
&::after {
content: " ";
border-radius: 50%;
height: 32px;
width: 32px;
height: rem(32px);
width: rem(32px);
position: absolute;
top: 50%;
left: 50%;
Expand Down

0 comments on commit 55269a7

Please sign in to comment.