radix-ui / primitives

Radix Primitives is an open-source UI component library for building high-quality, accessible design systems and web apps. Maintained by @workos.
https://radix-ui.com/primitives
MIT License
15.93k stars 833 forks source link

[Select] Missing className in the SelectValue component #3093

Closed andorep closed 1 month ago

andorep commented 2 months ago

Description

The SelectValue component was missing the className property, which caused issues when attempting to customize the element's appearance.

chaance commented 1 month ago

This is by design. See the comment a few lines above

// We ignore `className` and `style` as this part shouldn't be styled.
andorep commented 1 month ago

@chaance Could you elaborate on why you wouldn't want to modify this element? I understand it may have been discussed before, and it would be helpful for me to understand as I might be using it incorrectly.