Skip to content

Conversation

@lebaudantoine
Copy link
Collaborator

Wip research works.

Copy link
Collaborator Author

@lebaudantoine lebaudantoine left a 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>
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have the feeling that the tooltip is still being announced by the screen reader. As a result, the label is read out twice (see screenshot below).

Hiding the tooltip might have a broader impact, and I’m not sure that disabling it would be a neutral change from an accessibility standpoint.

Capture d’écran 2025-12-15 à 17 59 36

Copy link
Collaborator

@Ovgodd Ovgodd Dec 17, 2025

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.

@Ovgodd Ovgodd force-pushed the access/issue-767 branch 2 times, most recently from 75bcd51 to ad05cb2 Compare December 17, 2025 10:37
Comment on lines -359 to -361
tooltip={tooltipLabel(ProcessorType.VIRTUAL, {
imagePath,
})}
Copy link
Collaborator Author

@lebaudantoine lebaudantoine Jan 5, 2026

Choose a reason for hiding this comment

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

no tooltip is displayed anymore for regular user, I guess something isn't working as expected.
Capture d’écran 2026-01-06 à 00 04 41

Another comment I had while looking at this screenshot: do you think the visual contrast of the actual selected ring is strong enough to be clearly noticed and understood?

Copy link
Collaborator

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.

@lebaudantoine lebaudantoine force-pushed the access/issue-767 branch 2 times, most recently from 3871664 to 532202d Compare January 5, 2026 23:07
@Ovgodd Ovgodd force-pushed the access/issue-767 branch 2 times, most recently from 7a158f3 to 1d8962a Compare January 6, 2026 13:06
@Ovgodd Ovgodd self-requested a review January 6, 2026 13:09
@Ovgodd Ovgodd force-pushed the access/issue-767 branch 3 times, most recently from 1eb4c39 to fd443ec Compare January 6, 2026 13:28
@Ovgodd Ovgodd force-pushed the access/issue-767 branch 2 times, most recently from eaa5244 to 41c974d Compare January 6, 2026 14:02
Copy link
Collaborator Author

@lebaudantoine lebaudantoine left a comment

Choose a reason for hiding this comment

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

Few comments


const tooltipLabel = (type: ProcessorType, options: BackgroundOptions) => {
return t(`${type}.${isSelected(type, options) ? 'clear' : 'apply'}`)
const tooltipBlur = (type: ProcessorType, options: BackgroundOptions) => {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I guess same issue, the bluring option is vocalized twice on voice over

Image

@Ovgodd Ovgodd force-pushed the access/issue-767 branch 4 times, most recently from c3388e2 to f134a54 Compare January 7, 2026 08:00
lebaudantoine and others added 7 commits January 7, 2026 09:00
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.
…ggles

debounces blur announcements so screen readers only reflect the final state
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2026

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