Skip to content

Commit

Permalink
fix: realign text and icons on non-bordered inputs #333
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjones243 authored and jason-capsule42 committed Sep 30, 2024
1 parent dac8a44 commit 82006bc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/styles/input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ input {
min-height: calc(var(--ds-size-700, $ds-size-700) + var(--ds-size-25, $ds-size-25));
max-height: calc(var(--ds-size-700, $ds-size-700) + var(--ds-size-25, $ds-size-25));

padding: var(--ds-size-400, $ds-size-400) 0 var(--ds-size-100, $ds-size-100);
padding: var(--ds-size-400, $ds-size-400) 0 var(--ds-size-50, $ds-size-50);

white-space: nowrap;
overflow: hidden;
Expand Down
18 changes: 1 addition & 17 deletions src/styles/label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,23 +50,7 @@ label {
font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
}

:host(:not([bordered])) {
.wrapper {
&:focus-within {
label {
@include active-label;
}
}
}

label {
&.withValue {
@include active-label;
}
}
}

:host([bordered]) {
:host {
.wrapper {
&:focus-within {
label {
Expand Down
2 changes: 1 addition & 1 deletion src/styles/notificationIcons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
.typeIcon,
.notificationIcons {
align-items: flex-end;
padding-bottom: var(--ds-size-100, $ds-size-100);
padding-bottom: var(--ds-size-50, $ds-size-50);
}
}

Expand Down

0 comments on commit 82006bc

Please sign in to comment.