-
Notifications
You must be signed in to change notification settings - Fork 105
Wip enhance accessibility #776
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
base: main
Are you sure you want to change the base?
Conversation
c80980b to
b62182d
Compare
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.
LGTM except for this minor comment.
| <TooltipTrigger delay={tooltipType === 'instant' ? 150 : 1000}> | ||
| {children} | ||
| <Tooltip>{tooltip}</Tooltip> | ||
| <Tooltip aria-hidden="true">{tooltip}</Tooltip> |
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.
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.
hey @lebaudantoine
You’re right: even with aria-hidden="true", the tooltip gets announced because the React Aria TooltipTrigger adds an aria-describedby to the button, which points to the tooltip. That’s why the label is read twice. Disabling or hiding the tooltip isn’t neutral for accessibility—we need a different approach (e.g., a visual-only tooltip not referenced by aria-describedby) to avoid duplicating the announcement while keeping the visual hover/focus help.
75bcd51 to
ad05cb2
Compare
ad05cb2 to
99bb734
Compare
| tooltip={tooltipLabel(ProcessorType.VIRTUAL, { | ||
| imagePath, | ||
| })} |
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.
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.
Hey @lebaudantoine, I re-add the tooltip ! nice catch.
Regarding the visual contrast of the current selection ring, this is OK.
The contrast ratio is 3.14:1, which passes the “Graphical Objects and User Interface Components” criterion, requiring a minimum of 3:1.
3871664 to
532202d
Compare
7a158f3 to
1d8962a
Compare
1eb4c39 to
fd443ec
Compare
fd443ec to
293fae7
Compare
eaa5244 to
41c974d
Compare
src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx
Show resolved
Hide resolved
lebaudantoine
left a comment
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.
Few comments
src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx
Show resolved
Hide resolved
|
|
||
| const tooltipLabel = (type: ProcessorType, options: BackgroundOptions) => { | ||
| return t(`${type}.${isSelected(type, options) ? 'clear' : 'apply'}`) | ||
| const tooltipBlur = (type: ProcessorType, options: BackgroundOptions) => { |
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.
src/frontend/src/features/rooms/livekit/components/effects/EffectsConfiguration.tsx
Show resolved
Hide resolved
c3388e2 to
f134a54
Compare
Refine the Effects title to clearly indicate it covers both background and effects, improving clarity. Inspired by Google Meet.
Fix an issue where the focus visual indication was hidden due to an overly tight layout with no padding on the background and effects toggle buttons.
Update the virtual background effects tooltip and ARIA label with more descriptive and concise wording based on Sophie’s feedback. This helps all users, especially those using assistive technologies, by improving how each virtual background is vocalized.
While this makes it slightly less explicit that clicking an already selected option will disable the active effect, it improves accessibility by avoiding automatic focus movement from the previously active option to a separate “none” option. That focus shift could be misleading or hard to follow for screen reader users. Open to feedback on this decision.
Hide non-essential icons and refine the labels to emphasize that one option applies a stronger blur than the other. This should provide clearer cues for screen reader users.
Use the appropriate HTML <aside> element for the side panel and enhance it with the correct ARIA attributes to improve accessibility.
Signed-off-by: Cyril <[email protected]>
improves a11y by exposing blur state to sr users and hiding visual labels Signed-off-by: Cyril <[email protected]>
removed redundant label from virtual background to improve sr clarity
improves keyboard navigation by placing focus on first actionable element
f134a54 to
0421cb3
Compare
…ggles debounces blur announcements so screen readers only reflect the final state
|






Wip research works.