Skip to content

chore/rgaa fix focus indicators#181

Merged
FranceBe merged 2 commits intomasterfrom
chore/rgaa-fix-focus-indicators
Aug 11, 2025
Merged

chore/rgaa fix focus indicators#181
FranceBe merged 2 commits intomasterfrom
chore/rgaa-fix-focus-indicators

Conversation

@FranceBe
Copy link
Copy Markdown
Contributor

@FranceBe FranceBe commented Aug 7, 2025

Fixes MXP-3259

Remove the outline: none; css property on focusable items,
Replace it with visible outline based on the monochrome property to respect the UI Theme of the widget.

Before :
before focus outline

After:
after outline focus

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Aug 7, 2025

@FranceBe FranceBe requested a review from Copilot August 7, 2025 15:41
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR improves accessibility by fixing focus indicators on focusable elements in the widget. It removes the outline: none CSS property that was hiding focus indicators and replaces it with visible outlines that respect the UI theme.

  • Removes outline: none from modal and widget button elements
  • Adds orange focus outline for default theme and black outline for monochrome theme
  • Updates example file to use correct CSS file reference

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/components/Modal/Modal.module.css Replaces hidden outline with visible orange focus indicator
src/Widgets/PaymentPlans/index.tsx Adds monochrome class to support theme-aware focus styles
src/Widgets/PaymentPlans/PaymentPlans.module.css Implements theme-aware focus indicators for widget buttons
examples/multiple.html Updates CSS file reference from UMD to standard build

Comment thread examples/multiple.html
@FranceBe FranceBe changed the title Chore/rgaa fix focus indicators chore/rgaa fix focus indicators Aug 7, 2025
@FranceBe FranceBe merged commit e396236 into master Aug 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants