fix(web-components): make anchor position targets fixed positioned#36258
Conversation
📊 Bundle size report✅ No changes found |
|
Pull request demo site: URL |
|
@marchbox there is still an issue with the dropdown on mobile. It's impossible to select the fifth option here. |
@MarvinKlein1508 Nice catch. I’d expect the fallback position to kick in here, I’ll investigate. Thanks! |
Update: this seems to be a Safari only bug, as the fallback works in Chrome and Firefox. Will see how to mitigate it. |
davatron5000
left a comment
There was a problem hiding this comment.
Good with the change to fixed but will re-review when we feel like we fixed the Mobile Safari bug.
|
Update: the Safari bug is related to using |

Previous Behavior
All anchor position target elements in different components have
absoluteposition, this causes issues when the anchor element is inside afixedpositioned element, e.g. a<dialog>, as if the page scrolls, the target will scroll with the page while the anchor stay fixed due to its fixed positioned container.New Behavior
All target elements are
fixedpositioned.Related Issue(s)