Skip to content
Snippets Groups Projects
Commit d45422e8 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

fix(ui): all focus must be blue

parent 31d16599
No related branches found
No related tags found
2 merge requests!907V3.2.0,!899Resolve "[Design] - Revoir tous les "focus" du site"
Showing
with 5 additions and 28 deletions
...@@ -16,7 +16,6 @@ button { ...@@ -16,7 +16,6 @@ button {
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
// WIDTH // WIDTH
......
...@@ -22,7 +22,6 @@ button { ...@@ -22,7 +22,6 @@ button {
} }
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
&.checked { &.checked {
border-color: $red; border-color: $red;
......
...@@ -48,7 +48,6 @@ input { ...@@ -48,7 +48,6 @@ input {
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
&:not(.checked) { &:not(.checked) {
......
...@@ -29,7 +29,6 @@ button { ...@@ -29,7 +29,6 @@ button {
} }
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
&.expanded { &.expanded {
background-color: $red; background-color: $red;
......
...@@ -28,9 +28,4 @@ ...@@ -28,9 +28,4 @@
transform: rotate(180deg); transform: rotate(180deg);
} }
} }
&:focus-visible {
outline-offset: 0;
outline: 2px solid $blue-focus;
}
} }
...@@ -72,8 +72,8 @@ ...@@ -72,8 +72,8 @@
height: 40px; height: 40px;
} }
&:focus { &:focus-visible {
border-color: $grey-1; outline-offset: 2px;
} }
&.success { &.success {
border-color: $info-success; border-color: $info-success;
......
...@@ -25,7 +25,6 @@ nav { ...@@ -25,7 +25,6 @@ nav {
justify-content: center; justify-content: center;
flex: 1; flex: 1;
border-bottom: 3px solid transparent; border-bottom: 3px solid transparent;
transition: all 0.3s ease-in-out;
outline-offset: -2px; // Fixes the focus display issue in Firefox where it was not visible due to "overflow-x" on .navigation outline-offset: -2px; // Fixes the focus display issue in Firefox where it was not visible due to "overflow-x" on .navigation
&.active { &.active {
@include font-bold-16; @include font-bold-16;
...@@ -34,9 +33,6 @@ nav { ...@@ -34,9 +33,6 @@ nav {
&:hover { &:hover {
border-color: $grey-4; border-color: $grey-4;
} }
&:focus {
outline-color: $red;
}
} }
} }
} }
...@@ -19,7 +19,6 @@ ...@@ -19,7 +19,6 @@
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
&::placeholder { &::placeholder {
......
...@@ -97,7 +97,6 @@ button { ...@@ -97,7 +97,6 @@ button {
&:focus-visible { &:focus-visible {
outline-offset: 2px; outline-offset: 2px;
outline: 2px solid $blue-focus;
} }
&.unclickable { &.unclickable {
......
...@@ -43,9 +43,8 @@ ...@@ -43,9 +43,8 @@
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
background: $grey-10; background: $grey-10;
&:focus { &:focus-visible {
outline: none; outline-offset: 2px;
border-color: $grey-1;
} }
&:disabled { &:disabled {
......
...@@ -183,13 +183,6 @@ form p.notRequired { ...@@ -183,13 +183,6 @@ form p.notRequired {
} }
} }
button {
&:focus,
&:focus-within {
outline-color: $red;
}
}
// Layout // Layout
.w-100 { .w-100 {
width: 100%; width: 100%;
...@@ -291,7 +284,7 @@ button { ...@@ -291,7 +284,7 @@ button {
} }
:focus-visible { :focus-visible {
outline-color: $red; outline: 2px solid $blue-focus;
} }
.visually-hidden { .visually-hidden {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment