-
Notifications
You must be signed in to change notification settings - Fork 78
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
feat(list, list-item, list-item-group, filter)!: add scales, update padding and spacing, update font sizes #10853
Conversation
…adding from the content and custom-content divs in favor of setting those per scale on the content-container.
…e the inline padding with a flex gap instead.
…content-container, removing actions-content-container
…m and large according to design specs
…to the actions-start container because we don't want there to be extra padding to account for when there's no slotted start action. Also adding left padding rules for drag-handle with no selection and with border appearance and no drag handle
…hese rules need to always take precedence over others that conflict since drag handles are always rendered first on the left.
…lharper/7100-list-scale-and-updates
…same order as the Figma summary
…es that map to Aaron's logic
…order when the content-bottom slot is being used
…n. not sure why this was also applied to content-bottom because it doesn't seem to affect it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside from a few comments, this is looking great! I'll defer to @ashetland for the visual review.
@eriklharper LMK if this needs another review.
packages/calcite-components/src/components/list-item/list-item.tsx
Outdated
Show resolved
Hide resolved
packages/calcite-components/src/components/list-item-group/list-item-group.tsx
Show resolved
Hide resolved
packages/calcite-components/src/components/list-item-group/list-item-group.scss
Show resolved
Hide resolved
packages/calcite-components/src/components/list-item-group/list-item-group.tsx
Show resolved
Hide resolved
@eriklharper I also noticed if you change the scale on the list it isn't updating the child items. There should be something in |
Good call, this is something that should be supported. I can get on that issue today, it should be just a matter of setting it up to watch the changes on |
…adding and spacing, update font sizes (#10853) **Related Issue:** #7100 ## Summary This PR adds scales, updates padding and spacing and updates font sizes based on the latest designs for `calcite-list-item`, `calcite-list-item-group`, `calcite-list` and `calcite-filter`. BREAKING CHANGE: The spacing changes affect content in the `actions-start` slot in addition to other rendered elements. Some styling updates may need to be applied to slotted actions or other adjustments based on the new scales. --------- Co-authored-by: JC Franco <[email protected]>
Related Issue: #7100
Summary
This PR adds scales, updates padding and spacing and updates font sizes based on the latest designs for
calcite-list-item
,calcite-list-item-group
,calcite-list
andcalcite-filter
.BREAKING CHANGE: The spacing changes affect content in the
actions-start
slot in addition to other rendered elements. Some styling updates may need to be applied to slotted actions or other adjustments based on the new scales.