Repository navigation
[Newcomers] Make role options keyboard accessible and label radio groups #8244
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
Merged
Maanvi212006
merged 7 commits into
layer5io:master
from
ayushgade06:fix/8228-newcomers-role-a11y
Nov 7, 2026
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
7e771bb
fix(newcomers): make role options keyboard accessible
ayushgade06 65b20cb
fix(newcomers): label radio groups with their questions
ayushgade06 5524344
fix(newcomers): use theme token for focus outline contrast
ayushgade06 7c2da11
fix(newcomers): use a focus outline token that passes contrast in bot…
ayushgade06 2dee02e
chore: retrigger PR preview build
ayushgade06 583a5a4
Merge branch 'master' into fix/8228-newcomers-role-a11y
Maanvi212006 07b89cf
Merge branch 'master' into fix/8228-newcomers-role-a11y
Maanvi212006 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🔎 Supported by static analysis
Script executed:
Repository: layer5io/layer5
Length of output: 27623
Script executed:
Repository: layer5io/layer5
Length of output: 6834
Script executed:
Repository: layer5io/layer5
Length of output: 6781
Script executed:
Repository: layer5io/layer5
Length of output: 787
Script executed:
Repository: layer5io/layer5
Length of output: 5120
Script executed:
Repository: layer5io/layer5
Length of output: 15296
Script executed:
Repository: layer5io/layer5
Length of output: 2144
Script executed:
Repository: layer5io/layer5
Length of output: 3822
Script executed:
Repository: layer5io/layer5
Length of output: 1997
Script executed:
Repository: layer5io/layer5
Length of output: 3326
Use a focus-outline color with sufficient contrast in the light theme.
The role buttons sit on the light-theme page background, which is white.
#00B39Fprovides only about 2.6:1 contrast against white, below the 3:1 focus-indicator requirement. Use a darker outline color.🐛 Suggested fix
.option:focus-visible{ - outline: 2px solid #00B39F; + outline: 2px solid #007A6E; outline-offset: 2px; }Committable suggestion
Source: Learnings
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the outline now uses the green009A89ToGreen00B39F theme token, so it passes 3:1 in both themes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Length of output: 21352
🏁 Script executed:
Length of output: 1017
@ayushgade06The outline uses the token, but its current values do not pass 3:1 in both themes.In
src/theme/app/themeStyles.js:#00B39Fagainst#FFFFFFgives 2.64:1.#009A89against#121212gives 5.34:1.The token values are opposite to the order its name suggests. The light-theme concern remains. Please use a theme token that provides at least 3:1 against both page backgrounds, then recheck keyboard focus in both themes.
🧠 Learnings used
You are interacting with an AI system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, I had the token's theme order reversed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ayushgade06 Thanks for clarifying. That confirms the theme-order mismatch, but does not yet confirm a fix.
🧠 Learnings used
You are interacting with an AI system.