-
Notifications
You must be signed in to change notification settings - Fork 76
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] Drop down items do not fully display using Safari #9419
Comments
Related #8028 |
Here's a codepen version of the repro case: https://codepen.io/jcfranco/pen/ZENpLxd |
It looks like this is a Safari browser bug. As a workaround, you could unset the header/footer z-index used in calcite-modal {
--calcite-z-index-header: initial;
} I'll go ahead and label this as blocked until the browser bug is resolved. |
I just tried the workaround in our React/Typescript application (sample above, did not try there but in our app) and it flashed the entire dropdown once and went back to just showing the menu cutoff. Currently, our workaround is it set the placement of the if (isSafari) { |
@doreenbrinkman Would you be able to share more info about dropdown cutoff you're observing? |
@doreenbrinkman Following up on our chat, it looks like my workaround wasn't being applied properly because Vite was injecting the styles afterward, which would override it. Would you mind applying the following to your repro case? diff --git c/src/main.jsx w/src/main.jsx
index d529fa9..7a1d40e 100644
--- c/src/main.jsx
+++ w/src/main.jsx
@@ -23,12 +23,16 @@ ReactDOM.createRoot(document.getElementById("root")).render(
widthScale="s"
open
outsideCloseDisabled
- dismissible>
+ dismissible
+ style={{
+ "--calcite-z-index-header": "initial"
+ }}>
<div slot="header">Safari split button</div>
<div slot="content">Add some content here</div>
<CalciteSplitButton
slot="secondary"
primaryText="Save and leave"
+ overlayPositioning="fixed"
scale="m">
<CalciteDropdownGroup selectionMode="none">
<CalciteDropdownItem>Save and leave</CalciteDropdownItem> |
The workaround works using either inline styling or using a class. I forgot to pass in |
Spike to determine if the Safari bug fix mitigates, and/or if further action is needed, or we need to push out once Safari has been mitigated. |
Added as blocked by the Safari bug Franco mentioned above and since there is a workaround (in the same comment linked) adding in the |
Not seeing this issue after converting |
Check existing issues
Actual Behavior
Calcite split-button does not fully display the dropdown items using the Safari browser.
Safari screenshot:
Chrome screenshot (working):
Expected Behavior
All dropdown items are visible
Reproduction Sample
https://github.com/doreenbrinkman/calcite-debug
Reproduction Steps
dore582-safari-dropdown
Reproduction Version
2.8.3
Relevant Info
MacOS
Safari 17.4.1
Regression?
No response
Priority impact
impact - p1 - need for current milestone
Impact
The only workaround is to reduce the width of the window and the dropdown items will re-render above. Changing the
overlayPositioning
does not help.Calcite package
Esri team
ArcGIS Online
The text was updated successfully, but these errors were encountered: