-
Notifications
You must be signed in to change notification settings - Fork 77
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
Split Button: FAB slot placement in Firefox and Safari browsers #5743
Comments
This seems to be a FF bug. It seems like they don't handle a fixed element inside an element positioned as https://bugzilla.mozilla.org/show_bug.cgi?id=1514291 Unrelated question, is it valid for slotting a
So isn't this not even a valid thing to do? Either that or our doc needs to be more specific on what is allowed. |
If we are going to allow other things slotted in the Maybe the slot could be named to reflect that whatever slotted will positioned stuck at the bottom. |
Was wondering this as well, but the use case seemed to be a bit different than the
This could be a good path forward, since the slot has different benefits/uses than the |
I'll defer to @jcfranco but as it stands the doc really says that only a fab is allowed in that slot so this issue is "technically" invalid :) |
There is a workaround using the <calcite-split-button overlay-positioning="fixed" primary-text="Add" appearance="outline" primary-icon-start="layers" slot="footer"> Reached out to the Map Viewer team to determine if the workaround fits the need, or determine the use case for the |
Will review once PR #6520 has been incorporated to review the above issue. |
Still occurring in Firefox in From the MV team:
|
Via Chris and @rebollin:
|
Hi @geospatialem! What is the likelihood of getting this fix in for R03? |
@geospatialem @jcfranco Maybe we could have a different slot that doesn't position sticky but just always places at the bottom absolutely? |
I'm not sure adding an absolutely-positioned slot is the way to go since its contents would scroll. As Matt said, this is a Firefox bug (found a couple more), which limits our options. There are some additional workarounds for this:
WRT the |
FWIW, I also submitted a Webkit bug based on one of the FF issues. |
Actual Behavior
When slotting
dropdown-item
s into asplit-button
'sfab
slot some browsers (Firefox and Safari) are placing the component underneath parent components, even if usingoverlay-positioning="fixed"
.Expected Behavior
The
fab
slot should perform similar to the experience in Chrome/Edge and to thefooter-actions
slot where any slotted child components are depicted with the highest z-index.Reproduction Sample
https://codepen.io/geospatialem/pen/xxzrJpO
Reproduction Steps
dropdown-item
s placement underneath thecalcite-flow-item
Reproduction Version
beta.98
Relevant Info
Browsers effected:
Regression?
No response
Impact
The Map Viewer team needs to use the
fab
slot to maintain design functionality, in particular with the "Layers" panel, so users have the ability to add layers to the map.fab
slotfooter
slotEsri team
ArcGIS Map Viewer
The text was updated successfully, but these errors were encountered: