You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MessageBar component provides politeness as "assertive" and "polite". So, if there are multiple banners and we need disable the announcement of some banners then we cannot do so.
Expected Behavior
MessageBar component should provide politeness as "assertive", "polite" and "off".
@tarun29061990 I've been thinking about this for a bit, and I'm partially wondering if another way to handle this might be to provide a way to override the message that is announced. In your case, you could potentially override the message for MessageBars you do not wish to be announced to an empty string, and providing that option would also allow other types of fine-grained announcement control.
Would you be able to provide an example of the real-world use case you're looking to solve?
Component
MessageBar
Package version
9
React version
17
Environment
System:
OS: Linux 6.5 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (32) x64 AMD EPYC 7763 64-Core Processor
Memory: 114.10 GB / 125.78 GB
Container: Yes
Shell: 5.0.17 - /bin/bash
Browsers:
Chrome: 126.0.6478.182
npmPackages:
@types/react: ^17.0.39 => 17.0.39
@types/react-dom: ^17.0.11 => 17.0.25
react: ^18.2.0 => 18.2.0
react-dom: ^18.2.0 => 18.2.0
Current Behavior
MessageBar component provides politeness as "assertive" and "polite". So, if there are multiple banners and we need disable the announcement of some banners then we cannot do so.
Expected Behavior
MessageBar component should provide politeness as "assertive", "polite" and "off".
Reproduction
https://stackblitz.com/edit/qy5pjm-erokou?file=src%2Fexample.tsx
Steps to reproduce
We tried setting the politeness to "off" but it only takes "assertive" | "polite" as value
Are you reporting an Accessibility issue?
yes
Suggested severity
High - No workaround
Products/sites affected
Microsoft teams
Are you willing to submit a PR to fix?
yes
Validations
The text was updated successfully, but these errors were encountered: