primitives
primitives copied to clipboard
Correctly concatenate aria-describedby in a slot
Description
aria-describedby is technically a list of ids and should be concatenated kind of like className.
This pr fixes my own issue where this is described
Tests are included
Is there something wrong with my pr?
I'm not entirely sure we want to do this. Yes, aria-describedby can be more than one string but I think the component should be explicit about which element(s) are used as descriptions. With this solution there's no way for a consumer to explicitly override what Radix does internally, which may be valid in some cases.