Fix button focus on firefox tu use native focus#472
Merged
Conversation
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves custom Firefox-specific button focus outlines so that Firefox uses its native focus styles for buttons, aligning button focus behavior with the rest of the application for better accessibility and consistency. Flow diagram for Firefox button focus styling decisionflowchart TD
A[Button_in_Firefox_receives_focus] --> B{Browser_applies_focus_style}
B --> C[Native_Firefox_focus_style]
subgraph Previous_behavior
D[Normalize_SCSS] --> E[Firefox_specific_rule
outline 1px dotted ButtonText]
A --> D
E -.overrides.-> C
end
subgraph New_behavior
F[Removed_Firefox_specific_focus_rule]
A --> G[No_custom_outline_for_Firefox]
G --> C
end
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Hey - I've left some high level feedback:
- Since this change intentionally relies on the native Firefox focus outline, consider adding a short comment in
_normalize.scssnear the removed rule to document the accessibility rationale and avoid future reintroduction of custom outlines.
Prompt for AI Agents
Please address the comments from this code review:
## Overall Comments
- Since this change intentionally relies on the native Firefox focus outline, consider adding a short comment in `_normalize.scss` near the removed rule to document the accessibility rationale and avoid future reintroduction of custom outlines.Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Suite à un retour de Temesis, les focus des boutons sur fixefox sont dégradés et pas assez épais en vue de la MAJ du RGAA incluant WCAG 2.2.
On garde le focus natif navigateur comme c'est déjà le cas pour tout le reste
Summary by Sourcery
Bug Fixes: