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
When there are two siblings first 100% height and second VisuallyHidden it shows as overflow on chrome
This happens only in chrome
馃 Expected Behavior
There should be no overflow, VisuallyHidden shouldn't affect the visual side
馃槸 Current Behavior
Only in Chrome, but there's an overflow
馃拋 Possible Solution
Change margin from 0 -1px -1px 0 to -1px solves the issue. I know Tailwind uses it https://tailwindcss.com/docs/screen-readers and because it's position absolute I don't think there would be any issues with siblings positioning even though we're offsetting 2px in total while the height of the element is only 1px
馃敠 Context
I'm rendering Popover overlay in a portal, and the dismiss button wrapped in VisuallyHidden creates the overflow
馃悰 Bug Report
When there are two siblings first 100% height and second VisuallyHidden it shows as overflow on chrome
This happens only in chrome
馃 Expected Behavior
There should be no overflow, VisuallyHidden shouldn't affect the visual side
馃槸 Current Behavior
Only in Chrome, but there's an overflow
馃拋 Possible Solution
Change margin from
0 -1px -1px 0
to-1px
solves the issue. I know Tailwind uses it https://tailwindcss.com/docs/screen-readers and because it's position absolute I don't think there would be any issues with siblings positioning even though we're offsetting 2px in total while the height of the element is only 1px馃敠 Context
I'm rendering Popover overlay in a portal, and the dismiss button wrapped in VisuallyHidden creates the overflow
馃捇 Code Sample
https://stackblitz.com/edit/vitejs-vite-hte89a?file=src%2Fmain.jsx
馃實 Your Environment
馃Б Your Company/Team
ChiliPiper https://www.chilipiper.com/
The text was updated successfully, but these errors were encountered: