-
Notifications
You must be signed in to change notification settings - Fork 80
Action Bar
width changes when an Action
gets an indicator.
#5375
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
Comments
@ashetland + @SkyeSeitz: What are your design thoughts of In the sample above the component is expanded, and the indicator is added to the text line with the most characters. |
In case it's of use, we fixed this by modifying the CSS as such: calcite-action-bar[expanded] calcite-action:not([indicator])::after
display: inline-block
content: ''
width: 1rem |
What if we changed the indicator to always be in the same place? cc @asangma |
My vote would be to account for the additional space of the indicator rather than keep it attached to the icon. When it's expanded, the indicator feels out-of-place if it's still on the icon. |
I would agree with @ashetland. Also curious if there can be an Action Bar with no icons and just text? |
Technically, yes (except for the expand/collapse action), but I don't think this is a supported configuration. Looks odd to me. If the actions used in action-bar/pad are meant to always use their icon, we should update the doc to indicate this. cc @geospatialem Seems to me like this is ready for implementation. @SkyeSeitz @ashetland Can you confirm? |
Took a stab with the current information. LMK if this needs further design discussion. |
Installed and assigned for verification. |
Actual Behavior
The width of an

Action Bar
component changes when anAction
's indicator is toggled which leads to distracting layout changes.Expected Behavior
I expect the width of the
Action Bar
to remain constant when anAction
's indicator is toggled.Reproduction Sample
https://codesandbox.io/s/proud-meadow-eo44tw?file=/src/styles.css
Reproduction Steps
Action
component with a toggle-ableindicator
Action
component within anAction Group
that is nested with anAction Bar
toggle indicator
action to an element outside of theAction Bar
- probably a button.toggle indicator
action.Action Bar
increases.Reproduction Version
1.0.0-next.541
Relevant Info
MacOS, Chrome version 105.0.5195.102
Calcite Components version 1.0.0-next.541
We solved this issue temporarily by adding a pseudoelement that takes the place of the
indicator
whenindicator=false
. The issue may be fixed by keeping theindicator
psuedoelement as a permanent fixture within the component by settingvisibility: hidden;
, and only changing the visibility whenindicator=true
.Regression?
No response
Esri team
ArcGIS Field Apps
The text was updated successfully, but these errors were encountered: