RGAA: add outline for focused elements

This commit is contained in:
Tykayn 2021-12-16 12:21:24 +01:00 committed by tykayn
parent b84dd0bbd3
commit 34b97c55a6
7 changed files with 33 additions and 42 deletions

View File

@ -78,9 +78,7 @@
(Aucun titre) (Aucun titre)
</span> </span>
</span> </span>
<span class="step-counter-text" *ngIf="pollService.step_current !== 1" <span class="step-counter-text">Étape {{ step_current }} sur {{ step_max }} </span>
>Étape {{ step_current }} sur {{ step_max }}
</span>
</h1> </h1>
</div> </div>
<div class="column has-text-right"> <div class="column has-text-right">

View File

@ -66,10 +66,12 @@
line-height: $stepper-nav-height; line-height: $stepper-nav-height;
height: $stepper-nav-height; height: $stepper-nav-height;
padding: 0 1rem; padding: 0 1rem;
color: $secondary_color; color: $secondary_color !important;
&:hover { &:hover {
color: $font_color; color: $font_color;
outline: black;
outline-style: solid;
} }
} }

View File

@ -1,9 +1,9 @@
<div class="selector language-selector-container"> <div class="selector language-selector-container">
<span class="lang-button" (click)="nextLang()"> <button class="lang-button" (click)="nextLang()">
{{ 'LANGUAGES.' + currentLang | translate }} {{ 'LANGUAGES.' + currentLang | translate }}
<!-- <i class="fa fa-language lang-selector-icon clickable" title="sélection de langue"></i>--> <!-- <i class="fa fa-language lang-selector-icon clickable" title="sélection de langue"></i>-->
<i class="fa fa-chevron-down"></i> <i class="fa fa-chevron-down"></i>
</span> </button>
<div class="buttons has-addons"> <div class="buttons has-addons">
<label for="lang_selector" class="hidden"> <label for="lang_selector" class="hidden">

View File

@ -16,3 +16,8 @@
color: $primary-color; color: $primary-color;
} }
} }
.lang-button {
border: none;
padding: 0;
line-height: $header-nav-inner-height;
}

View File

@ -1,6 +1,17 @@
.outlined {
&:focus,
&:active {
outline: black;
outline-style: solid;
outline-offset: 0.25rem;
}
}
a {
@extend .outlined;
}
button, button,
.btn, .btn {
.back { @extend .outlined;
@extend .button; @extend .button;
} }

View File

@ -39,7 +39,12 @@ textarea {
margin-bottom: 1em; margin-bottom: 1em;
} }
} }
button,
.button {
&:focus {
@extend .outlined;
}
}
textarea, textarea,
input, input,
.input, .input,
@ -49,6 +54,9 @@ select,
@extend .clickable; @extend .clickable;
border: solid 1px $font_color; border: solid 1px $font_color;
max-width: 90vw !important; max-width: 90vw !important;
&:focus {
@extend .outlined;
}
} }
input, input,

View File

@ -58,39 +58,6 @@ a {
content: ''; content: '';
} }
&.next::before,
&.prev::after {
position: absolute;
top: 0;
bottom: 0;
display: block;
width: 100%;
height: 0.6rem;
margin: auto;
background-color: $secondary_color;
z-index: -1;
}
&.next::after,
&.prev::before {
display: inline-block;
width: 1rem;
height: 1rem;
border-bottom: 2px solid #000;
}
&.next::after {
margin-right: 1rem;
border-right: 2px solid #000;
transform: rotate(-45deg);
}
&.prev::before {
margin-left: 1rem;
border-left: 2px solid #000;
transform: rotate(45deg);
}
&:hover { &:hover {
&.next::before, &.next::before,
&.prev::after { &.prev::after {