-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
fix(select): remove scale animations from base select styles #9073
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
base: main
Are you sure you want to change the base?
fix(select): remove scale animations from base select styles #9073
Conversation
|
@Hamed-Ajaj is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
|
I removed the scale ( There is still a small horizontal offset in some themes that seems to come from If you have a preferred or more idiomatic way to handle this within Base UI’s |
|
I also tried fixing this in several ways by adjusting styles and Positioner From debugging in DevTools, it looks like the horizontal ( Happy to adjust this further if there’s a recommended way to handle this within |
|
thanks @joesanchezjr , yup this was the problem that i couldn't fix it, if you change also the style of the select for example mira lira or vega, the position of the popup will change it's a weird problem. |
|
The problem relating to misalignment when using |
|
thanks @atomiks |

Summary
Remove scale-based animations from Base UI Select styles to prevent popup
misalignment when opening or selecting a value.
This change significantly improves alignment consistency across styles
(Lyra, Nova, Vega, Maia, Mira), though a small horizontal translation issue
still exists in some cases.
What changed
zoom-in/zoom-outanimations from Base UI Select content stylesMotivation
Scale transforms applied to the positioned element caused the popup to visually
shift when its state changed (open/select). Removing these transforms fixes the
majority of alignment issues and stabilizes the popup position.
Known limitation
There is still a small horizontal translation discrepancy in some styles that
appears to originate from the Base UI
Positioneralignment logic rather thanfrom styling alone.
I experimented with
align,alignOffset, andalignItemWithTrigger, but nonefully resolved this without affecting expected behavior. For now, this PR
focuses on the main regression caused by scale transforms.
Notes
If there is a more idiomatic way to handle this alignment within Base UI’s
positioning system, I’d be happy to update the implementation based on
maintainer or community guidance.
Fixes #9053