Add DropdownMenu.ItemDescription
and DropdownMenu.ItemLabel
#1364
buhodev
started this conversation in
Feature Requests / Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
It would be good to include
DropdownMenu.ItemDescription
andDropdownMenu.ItemLabel
components so that users don't have to doaria-describedby
andaria-labelledby
manually.Supossing we have this reusable component pseudocode:
then under the hood,
<DropdownLabel>
will use<DropdownMenu.ItemLabel>
and<DropdownShortcut>
will use<DropdownMenu.ItemDescription>
. This means that each<DropdownItem>
will use the ids of<DropdownLabel>
and<DropdownShortcut>
on thearia-labelledby
andaria-describedby
attributes automatically.Beta Was this translation helpful? Give feedback.
All reactions