-
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
Improve tooltip arrow to allow semi-transparent background color #6798
Comments
@cont-kolomeets We're interested in learning more of the use case behind adding transparency to the |
If we want to fix this, we can use css |
If we want to support transparent backgrounds on all of our components we may need to set up some screenshot tests for each one. |
Agree that usage of transparency should be limited, but it's just something we allow for tables and charts in our infographic builder. In some cases alpha of 0.8 can be used. Also you never now in which context users might want to use the tooltips. |
@jcfranco @macandcheese if we want to support semi-transparent backgrounds in all of our components, we need to do some work to make sure we're only setting the background on one element within the component and any components used within the component have This would probably be an audit of every component to setup screenshot tests and make sure that backgrounds with some transparency look good. Do we want to create an epic for this? Block example |
Going forward, we may want to introduce an internal component (possibly functional component) to handle rendering a triangle SVG and styling it with a stroke/fill. |
**Related Issue:** #6798 ## Summary - Creates a `FloatingArrow` functional component to generate an SVG for the arrow. - Uses `FloatingArrow` instead of `transform: rotate` to create the caret arrow tail. - Introduces optional state property `floatingLayout` on `FloatingUIComponent` class for sizing the arrow properly. - Removes CSS where we are setting the BG on two separate elements. - Sets `Action` used in the popover to be transparent. - Removes unnecessary styles - Screener tests - See: floating-ui/floating-ui#2195
Installed and assigned for verification. |
@geospatialem Tested with 1.4.2. |
Thanks for identifying, @cont-kolomeets. Checking in with the team to determine if this is expected behavior - will comment further when we know next steps. |
Actual Behavior
We have customizable tooltips and if a user changes the background transparency, the arrow artifacts become visible.
Expected Behavior
Please fix the arrow, so it doesn't go inside the container.
Reproduction Sample
https://codepen.io/cont-kolomeets/pen/JjmKGGb?editors=100
Reproduction Steps
See the sample.
Reproduction Version
1.0.7
Relevant Info
No response
Regression?
No response
Priority impact
p0 - emergency
Impact
No response
Esri team
ArcGIS Business/Community Analyst
The text was updated successfully, but these errors were encountered: