Skip to content

Fix stackable snackbar scrim accessibility - #842

Merged
Sahasra_venepally (Sab-do3) merged 1 commit into
masterfrom
fix/stackable-snackbar-scrim-accessibility
Oct 16, 2026
Merged

Sahasra_venepally (Sab-do3) merged 1 commit into
masterfrom
fix/stackable-snackbar-scrim-accessibility

Conversation

@Sab-do3

@Sab-do3 Sahasra_venepally (Sab-do3) commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

AI-generated

Problem

The stackable snackbar scrim lacks an explicit button role for accessibility services, and its default English accessibility label describes dismissing rather than collapsing expanded notifications.

Root cause

The scrim's clickable modifier does not specify a role, and the default scrim_content_description uses dismissal wording.

Fix

  • Add role = Role.Button to the scrim's clickable modifier.
  • Change the default accessibility label to Collapse Expanded notifications.
  • Preserve the existing onDismiss callback and click behavior.
Before After
No explicit button role; default label is Dismiss Expanded notifications. Explicit button role; default label is Collapse Expanded notifications.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: d684a345-708c-46b9-a1e1-ae1615fd78f3
@Sab-do3
Sahasra_venepally (Sab-do3) marked this pull request as ready for review October 15, 2026 10:15
@Sab-do3
Sahasra_venepally (Sab-do3) requested a review from a team as a code owner October 15, 2026 10:15
Copilot AI balanced review requested due to automatic review settings October 15, 2026 10:15

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The two narrowly scoped accessibility changes preserve existing behavior and have no identified blocking issues.

0 open findings

What changed in this PR

Improves stackable snackbar scrim accessibility without changing click behavior.

Changes:

  • Adds an explicit button role to the scrim.
  • Updates the default English label to describe collapsing expanded notifications; translations remain unchanged.
File Description
fluentui_notification/​src/​main/​res/​values/​strings.xml Changes the default accessibility label from dismissal to collapse wording.
fluentui_notification/​src/​main/​java/​com/​microsoft/​fluentui/​tokenized/​notification/​StackableSnackbar.kt Adds Role.Button while preserving onDismiss.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@sachin2dehury Mr. Salts (sachin2dehury) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@Sab-do3

Copy link
Copy Markdown
Collaborator Author

@microsoft-github-policy-service agree company="Microsoft"

@Sab-do3
Sahasra_venepally (Sab-do3) merged commit 40095bd into master Oct 16, 2026
5 of 6 checks passed
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.

4 participants