-
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
Nested List Items no longer correctly align #8667
Comments
This Figma file covers designs for this issue and multiple related design revisions for List. cc @driskull |
@ashetland @SkyeSeitz I have some concerns about the design summary... The summary says that the "classic" mode should maintain existing padding and spacing. That would mean that each mode would have its own styles. Id rather ovoid that if necessary because its harder to maintain. I thought the purpose of these modes would just be how the chevron is rendered and takes up space? Can we just revise the spacing/padding in all modes? I think its fine to have the indent spacing change between the modes but spacing between actions, content should probably be consistent. |
@asangma do you know why list uses a shadow to imitate a border? It seems like it was added way back when in this PR: 5a279fa#diff-eabf53fd207751173a994b841b67b64fe226fffdef099ebd21169883d20fa0f2R10 I'd like to use a real border instead if possible but wanted to check with you. |
This was a throwback habit to a time before good box standards. We can use a real life authentic certified border. |
@ashetland thanks. I'll ping @jcfranco. Was hoping to be able to use the new "nested" mode in the Maps SDK widgets. |
@ashetland ready for review. |
…enting items (#9169) **Related Issue:** #8242 #8667 #9058 ## Summary - Properly indents each list-item nested within another list or list-item - Removes transparent bg from handle, not necessary - Updates internal table cell classes to remove padding being set by default browser styles. - Changes borders to use proper css borders instead of a 1px margin and shadow - Sets bg color of foreground 1 on list-item. - Stretch action and handles slotted within a list-item. - Removes padding from empty lists - Remove unnecessary utils from list - Add and improve screenshot tests
Installed and assigned for verification. |
🍠 Verified on |
Check existing issues
Actual Behavior
When any items are nested in a List, space for the expand affordance is not accounted for in all items, breaking nested alignment.
Expected Behavior
When nested items are present in a List, the space for the expand affordance is accounted for in all items to maintain proper alignment.
Reproduction Sample
https://codepen.io/ashetland/pen/VwRyOQa?editors=1000
Reproduction Steps
Expand the second item and note the alignment of the children as well as the item at the top that has no children.
Reproduction Version
v2.3.0
Relevant Info
No response
Regression?
v2.1.0
Priority impact
p3 - want for upcoming milestone
Impact
No response
Calcite package
Esri team
Calcite (design)
The text was updated successfully, but these errors were encountered: