Open jn394 opened 3 months ago
Hello! I'm assuming you are using the v8 CommandBar
component since it doesn't exist in v0.
Please create a reproduction of this issue outside of SharePoint so we can verify that the bug is with the component and not with SharePoint, and we'll take a look. Thank you!
Hey @emmayjiang,
I added the reproduction link in the description. I've noticed a few things:
@jn394 Thanks for providing the repo, i've looked into it and addressed each point below:
The items are still being rendered in the overflow menu.
- This is expected behavior with
CommandBar
asitems
will automatically flow into an overflow menu if thecontainer
runs out of space. Consider increasing thewidth
of the container to prevent this.The overflow button is generated and clickable but not visible.
- To get the overflow menu button icon to show up, you'll need to initialize the icons (see below):
import { initializeIcons } from '@fluentui/font-icons-mdl2';
initializeIcons();
> While the properties of the items aren't be changed. The screen reader still says "Selected" for each item in the overflow menu.
- As you mentioned, i'm also not able to reproduce the initial issue in the title of the item properties being overwritten. I am able to reproduce the non-selected overflow items being read out as "selected" on both Voiceover and NVDA screen readers. However, this is now a different issue from the original - you should either update the title and description of this issue or create a new one, what do you think?
@TristanWatanabe Thanks for providing feed back. As for the non-selected overflow items being read out as "selected". I'll go ahead and change the title and description. Thanks
Library
React / v8 (@fluentui/react)
System Info
Are you reporting an Accessibility issue?
None
Reproduction
https://stackblitz.com/edit/vitejs-vite-v3is66
Bug Description
Actual Behavior
While using a screen reader and tabbing over to the overflow menu, the items would read out "Item selected selected" I'm using the CommandBar component in a custom SPFx webpart. Each item has a structure like this:
Expected Behavior
The screen reader should not read out loud "selected" at all since the item is only be hovered over, only when the item is pressed or clicked should the screen reader say "selected".
Logs
No response
Requested priority
Blocking
Products/sites affected
No response
Are you willing to submit a PR to fix?
yes
Validations