Merge pull request #4522 from betagouv/accessibility_outline_links

Améliore l'accessibilité en encadrant les liens sous focus
This commit is contained in:
LeSim 2019-11-14 15:18:19 +01:00 committed by GitHub
commit f20a871aa0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 24 additions and 5 deletions

View file

@ -1,3 +1,4 @@
@import "colors";
@import "constants";
%horizontal-list {
@ -17,3 +18,10 @@
animation-fill-mode: forwards;
animation-duration: 0.3s;
}
%outline {
&:active,
&:focus {
outline: 3px solid $blue;
}
}

View file

@ -1,7 +1,10 @@
@import "colors";
@import "constants";
@import "placeholders";
.button {
@extend %outline;
display: inline-block;
padding: 8px 16px;
border-radius: 30px;
@ -20,11 +23,6 @@
text-decoration: none;
}
&:active,
&:focus {
outline: none;
}
&:disabled {
opacity: 0.5;
filter: saturate(50%);

View file

@ -1,3 +1,6 @@
@import "colors";
@import "placeholders";
html,
body {
height: 100%;
@ -14,5 +17,7 @@ html {
}
a {
@extend %outline;
text-decoration: none;
}

View file

@ -1,5 +1,6 @@
@import "constants";
@import "colors";
@import "placeholders";
.form {
h1 {
@ -177,6 +178,8 @@
input[type=checkbox],
input[type=radio] {
@extend %outline;
margin-left: 5px;
margin-right: 4px;
margin-bottom: 2 * $default-padding;

View file

@ -365,6 +365,11 @@ $cta-panel-button-border-size: 2px;
color: #FFFFFF;
text-decoration: none;
}
&:active,
&:focus {
outline: 3px solid #FFFFFF;
}
}
.cta-panel-button-blue {