Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvement/Add style for focused element for accessibility #39

Merged
merged 3 commits into from
Nov 6, 2023

Conversation

glx77
Copy link
Contributor

@glx77 glx77 commented Nov 3, 2023

No description provided.

scss/main.scss Outdated Show resolved Hide resolved
@@ -1,5 +1,5 @@
button:focus {
outline: none !important;
*:focus, .focused, .checkbox-custom:focus::before, .flatpickr-day.inRange:focus {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bootstrap a déjà une règle css de focus, il faut enlever cette règle qui la désactive.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ha yes exact, mais je devrais pas laisser au moins celle ci pour qu'on ai notre couleur :

*:focus {
  outline: 1px solid $blue-bright !important;
}

Copy link
Member

@floranpagliai floranpagliai Nov 6, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dans le fichier variables.scss:

$primary:     $blue-bright;
$component-active-bg:         theme-color("primary") !default;
$input-btn-focus-color:       rgba($component-active-bg, .25) !default;

C'est donc déjà le blue-bright avec une opacité de .25

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok parfait alors, j'ai retiré la rule du coup. Comme c'est prefix input, je pensais que ça ne le ferais pas sur les liens button ou autres select, mais ça semble good au final my bad.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Top, et après par contre j'ai pas vérifié pour la checkbox-custom si c'était un input ou un btn, ni le inRange du flatpicker

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ce sont des label donc ça devrait être pris en compte à priori

@floranpagliai floranpagliai merged commit 1084380 into master Nov 6, 2023
1 check passed
@floranpagliai floranpagliai deleted the improvement/add-style-for-focus-element branch November 6, 2023 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants