Skip to content

Commit

Permalink
[#417] Updated textfield input padding. (#421)
Browse files Browse the repository at this point in the history
  • Loading branch information
febdao authored Nov 10, 2024
1 parent a6ccd6f commit f50f6ff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 0 additions & 1 deletion components/01-atoms/input/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
border-width: $_border-width;
padding: $_vertical_spacing $_horizontal_spacing;
width: 100%;
min-height: $_label-line_height + $_vertical_spacing * 2;
}

&[type='color'] {
Expand Down
4 changes: 3 additions & 1 deletion components/01-atoms/textfield/textfield.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
$root: &;
$_border-width: ct-particle(0.125);
$_hover-border-width: $_border-width * 2;
$_vertical_spacing: ct-spacing(1.625);
$_horizontal_spacing: ct-spacing(2);

@include ct-form-control-no-appearance();
@include ct-form-control-disabled($ct-textfield-disabled-opacity);
Expand All @@ -15,7 +17,7 @@
border-radius: $ct-textfield-border-radius;
border-style: solid;
border-width: $_border-width;
padding: ct-spacing(1.625) ct-spacing(2);
padding: $_vertical_spacing $_horizontal_spacing;
width: 100%;
}

Expand Down

1 comment on commit f50f6ff

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.