[RadioGroup] Unselectable radio group item #3360
Unanswered
hpohlmeyer
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am working on an option picker similar to a t-shirt size picker on a shop page. The radio group is the natural pick for that and works fine in most cases. The problem occurs is something is sold-out.
This sounds like a good case to use
disabled
, but marking a radio buttondisabled
lets screen readers skip it. The group size would be properly announced, but you would never be able to read all options, meaning you never know if your size exists and is sold out or if it does not exist.On way to fix that would be a radio item with
aria-disabled
but withoutdisabled
, which should be included in the navigation, but not be selectable. I tried to build that on top of the radix group, but it does not look like I can get access to the radio-context. Am I missing something, or is build that on top of the existing primitives impossible right now?Beta Was this translation helpful? Give feedback.
All reactions