Repository navigation
feat(ui): Improve aria attributes of menu items - #40573
Conversation
c4c6130 to
53a9689
Compare
size-limit report 📦
|
53a9689 to
14ed34b
Compare
There was a problem hiding this comment.
Used to indicate that this menuitem is going to open a submenu
There was a problem hiding this comment.
For selects (including compactSelect) they are checkboxes or radios.
There was a problem hiding this comment.
menuitemcheckbox and menuitemradio require this attribute, which will be helpful in tests to understand if the item has been checked or not
There was a problem hiding this comment.
This will be overriden in SelectOption, but this can be considered the default role
|
Would be nice if the storybook aria plugin was pointing these out, but i see things are passing in there save for colors: https://storybook.sentry.dev/?path=/story/components-buttons-dropdowns-dropdown-link--anchor-left-default |
|
going to try and update tests for this actually |
14ed34b to
067a960
Compare
| // Open the mneu | ||
| userEvent.click(screen.getByRole('button', {name: 'This is a Menu'})); | ||
|
|
||
| // The mneu is open |
There was a problem hiding this comment.
| // The mneu is open | |
| // The menu is open |
* master: (82 commits) ref(test): Convert account security details to rtl and ts (#40638) fix(appconnect): Drop app_id column (#40326) test(js): Convert InviteMembersModal to RTL (#40637) test(js): Convert fieldRenderers to RTL (#40633) chore(events): Use longKeys for Java packages (#40539) ref(ui): Remove deprecatedforms from AdminQuotas (#40627) ref(js): Convert InviteRowControl to a FC (#40634) feat(ui): Improve aria attributes of menu items (#40573) feat(js): Report usage of deprecatedforms in window.SentryApp (#40628) ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626) ref(js): Convert TitleStar to a FC (#40632) feat(ui): Label Settings Serach input (#40630) ref(js): Extract permissionStateToList out of class (#40620) ref(js): Be consistent about `domId` with `useMemo` (#40622) feat(ui): Use `nav` For settings navigations (#40576) fix(webpack): Use 127.0.0.1 loopback over locahost (#40625) test(discover): Convert eventsRequest.spec.jsx to RTL (#40585) fix(ui): Remove invalid `role="text"` (#40579) feat(ui): Use `header` for Layout.Header component (#40580) (fix): self-hosted e2e env variable update (#40619) ...
* master: (82 commits) ref(test): Convert account security details to rtl and ts (#40638) fix(appconnect): Drop app_id column (#40326) test(js): Convert InviteMembersModal to RTL (#40637) test(js): Convert fieldRenderers to RTL (#40633) chore(events): Use longKeys for Java packages (#40539) ref(ui): Remove deprecatedforms from AdminQuotas (#40627) ref(js): Convert InviteRowControl to a FC (#40634) feat(ui): Improve aria attributes of menu items (#40573) feat(js): Report usage of deprecatedforms in window.SentryApp (#40628) ref(ui): Remove deprecatedforms/selectField in AdminQueue (#40626) ref(js): Convert TitleStar to a FC (#40632) feat(ui): Label Settings Serach input (#40630) ref(js): Extract permissionStateToList out of class (#40620) ref(js): Be consistent about `domId` with `useMemo` (#40622) feat(ui): Use `nav` For settings navigations (#40576) fix(webpack): Use 127.0.0.1 loopback over locahost (#40625) test(discover): Convert eventsRequest.spec.jsx to RTL (#40585) fix(ui): Remove invalid `role="text"` (#40579) feat(ui): Use `header` for Layout.Header component (#40580) (fix): self-hosted e2e env variable update (#40619) ...
This makes menu items a little bit better