Skip to content
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

MOON-459: Add Spacing pico and update some spacings components #468

Merged
merged 5 commits into from
Dec 13, 2024

Conversation

Eevolee
Copy link
Contributor

@Eevolee Eevolee commented Dec 12, 2024

JIRA

https://jira.jahia.org/browse/MOON-459

Description

Add global spacing --spacing-pico & replace --spacing-nano with $spacing-icon in requiring components style

@Eevolee Eevolee requested a review from ffffffelix December 12, 2024 16:18
Copy link
Collaborator

@ffffffelix ffffffelix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can also use $spacing-icon_big for some other components like:

  • Accordion
  • Collapsible

src/components/ListItem/ListItem.scss Show resolved Hide resolved
@@ -1,11 +1,6 @@
@use "../../tokens/spacings/spacings" as *;

.moonstone-IconTextIcon {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am wondering if we should use we should use a $spacing-icon_big spacing/gap when we set iconSize to big

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When icons of iconTextIcon are set to size big there is no extra className added to the component, since the spacing is directly assigned as a gap on .moonstone-IconTextIcon I don't have an efficient way of changing it.

@ffffffelix ffffffelix merged commit ffc7c91 into develop Dec 13, 2024
3 checks passed
@ffffffelix ffffffelix deleted the MOON-459 branch December 13, 2024 15:35
@ffffffelix ffffffelix added the patch Increment the patch version when merged label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Increment the patch version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants