Skip to content

Commit

Permalink
🐛 fix(password): correctif états de la case à cocher [DS-3401] (#667)
Browse files Browse the repository at this point in the history
- force l'état de la checkbox à l'état par défaut, pour éviter qu'elle ne passe en erreur/succès si elle hérite de cet état sur le composant.
  • Loading branch information
keryanS authored Jul 5, 2023
1 parent dcbe97e commit 73f0aca
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/component/password/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
@import '../../core/index';
@import '../button/index';
@import 'style/setting';
@import '../checkbox/index';
16 changes: 12 additions & 4 deletions src/component/password/style/_scheme.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,29 @@
////

@use 'module/color';
@use 'module/selector';

@mixin _password-scheme($legacy: false) {
#{ns(password)} {
#{selector.ns(password)} {
&__btn {
@include btn-kind-scheme(4, $legacy);
}

#{ns-attr(capslock)} {
#{selector.ns-attr(capslock)} {
@include before {
@include color.data-uri-svg(default grey, (legacy: $legacy), $capslock-svg);
}
}

& &__checkbox #{ns(label)} {
@include color.text(default grey, (legacy: $legacy));
& &__checkbox {
input[type="checkbox"] {
+ label {
@include color.text(default grey, (legacy: $legacy));
@include before {
@include color.background-image(border action-high blue-france, (), checkbox-background-image());
}
}
}
}
}
}

0 comments on commit 73f0aca

Please sign in to comment.