You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
benjamind
changed the title
sl-select shows scrollbars in menu when html padding is 0
sl-select shows scrollbars in menu when html margin is 0
May 3, 2022
I need to investigate this further, but it could be intended, as <sl-select> uses <sl-dropdown> and the latter uses Floating UI to ensure the panel is positioned within the viewport.
This was caused by the padding property that gets passed to Floating UI, which was set to 8 for some reason. I was able to replicate it and verify the fix.
Describe the bug
It appears the sizing of the
sl-menu-item
within ansl-select
is incorrect if thehtml
element has no margin.To Reproduce
Steps to reproduce the behavior:
html
style formargin
to 0sl-select
componentDemo
https://codepen.io/delarre/pen/GRQgMKo?editors=1100
Screenshots
Browser / OS
Additional information
Provide any additional information about the bug here.
The text was updated successfully, but these errors were encountered: