Skip to content

feat: Update orange button styling for WCAG accessibility [AP-66]#542

Merged
dougmartin merged 2 commits intomasterfrom
AP-66-update-orange-button-styling
Mar 4, 2026
Merged

feat: Update orange button styling for WCAG accessibility [AP-66]#542
dougmartin merged 2 commits intomasterfrom
AP-66-update-orange-button-styling

Conversation

@dougmartin
Copy link
Member

Update .button class colors and add keyboard focus indicator to meet WCAG AAA contrast ratios. Add $cc-button-* SCSS variables for new color palette. Remove dead hover rule from disabled button override.

Spec: specs/AP-66-update-orange-button-styling.md

Update .button class colors and add keyboard focus indicator to meet
WCAG AAA contrast ratios. Add $cc-button-* SCSS variables for new
color palette. Remove dead hover rule from disabled button override.

Spec: specs/AP-66-update-orange-button-styling.md
Copy link

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

Updates the Activity Player’s shared .button styling to meet WCAG contrast/accessibility requirements by introducing a new button-specific color palette and adding a keyboard-visible focus indicator.

Changes:

  • Added $cc-button-* SCSS variables for default/hover/click/border/focus-ring colors.
  • Updated .button styles in app.scss (default, hover, active, and new :focus-visible ring).
  • Removed unreachable :hover styling from the disabled override in bottom buttons; added an implementation spec document.

Reviewed changes

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

File Description
src/components/vars.scss Introduces new button palette variables used by shared .button styling.
src/components/app.scss Applies new colors and adds :focus-visible focus ring styling to .button.
src/components/activity-page/bottom-buttons.scss Cleans up dead disabled-hover rule under pointer-events: none.
specs/AP-66-update-orange-button-styling.md Documents the accessibility requirements, palette, and rationale/decisions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cypress
Copy link

cypress bot commented Mar 3, 2026

activity-player    Run #1868

Run Properties:  status check passed Passed #1868  •  git commit b866f14908: fix: Use currentColor for reset button SVG icon fill
Project activity-player
Branch Review AP-66-update-orange-button-styling
Run status status check passed Passed #1868
Run duration 05m 11s
Commit git commit b866f14908: fix: Use currentColor for reset button SVG icon fill
Committer Doug Martin
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 2
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 96
View all changes introduced in this branch ↗︎

The reset button's SVG icon in iframe-runtime.scss previously used
hardcoded fill values ($cc-charcoal default, white on :active) that
matched the old .button text color behavior. With the AP-66 button
styling update, :active no longer changes text to white, so the
hardcoded white fill became a visual mismatch. Replace with
currentColor so the icon always inherits the button text color.
Copy link
Member

@scytacki scytacki left a comment

Choose a reason for hiding this comment

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

looks good

@dougmartin dougmartin merged commit 1d9804f into master Mar 4, 2026
6 checks passed
@dougmartin dougmartin deleted the AP-66-update-orange-button-styling branch March 4, 2026 14:45
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