Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
Improved focus behaviour. (#288)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tristan-H11 committed Mar 23, 2022
1 parent 83bfd5e commit 451437c
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/core/components/inputs/text-input/text-input.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,27 @@ input {
&::placeholder {
color: $placeholder-font
}

&:disabled::placeholder {
color: $disabled-placeholder-font
}

@each $name, $colors in $flavors {
&.#{$name} {
&:focus {
accent-color: list.nth($colors, 1);

@if $name == "danger"
or $name == "warning"
or $name == "success"
or $name == "info" {
border: 2px solid;
border-color: list.nth($colors, 1);
&:focus {
outline: none;
}
} @else {
&:focus {
accent-color: list.nth($colors, 1);
}
}
}
}
Expand Down

0 comments on commit 451437c

Please sign in to comment.