Inconsistent dropdown behaviour using breakpoints #3656
Closed
thomasEeckhout
started this conversation in
General
Replies: 1 comment
-
Thanks for reporting. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Switching between different dropdown alignments using tailwind breakpoints can result in inconsistent behaviour.
For example:
For the smallest screens, we use
dropdown-center
.Starting from
sm:
breakpoint we usedropdown-end
.Because
dropdown-center
addstranslate 50%
todropdown-content
and,dropdown-end
doesn't use any translate, we get adropdown-end
that's offset by 50% starting from thesm:
breakpoint.You can fix this manually by adding
sm:translate-0
to thedropdown-content
but it doesn't seem right.I wasn't sure if I should report this as a bug or not, so i created a discussion. Let me know if this isn't the right place for this.
Beta Was this translation helpful? Give feedback.
All reactions