-
Notifications
You must be signed in to change notification settings - Fork 217
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segmented Control has broken classic variant #635
Comments
cc @kendallstrautman and @chaance as you folks were working on the mentioned PR 😄 (sorry in advance if I should not cc people here. This is my fisrt issue in Radix) |
Thanks for the report @thien-do, that change should not have affected the shadows. We'll take a look! |
Wow thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since #621, the "classic" variant no longer has its shadow, even when it is not disabled. This can be seen in the playground of that PR:
I understand from the design (mentioned in the PR) that the disable style is the same for both "classic" and "surface" variants. However, I believe it's not intentional for the "classic" style to lose its shadow when not being disabled due to this change.
In fact, the absence of shadow in disabled state is more likely to be an unintentional issue. The code change (permalink) means the selectors will never match.
We can see this from the final CSS as well:
Because the structure of Segmented Control is that:
The selector in 3.1.6 will never match anything, while the one in 3.1.4 does.
The text was updated successfully, but these errors were encountered: