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

4KDST-17: Spacing Token #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

4KDST-17: Spacing Token #11

wants to merge 1 commit into from

Conversation

robherba
Copy link

@robherba robherba commented Jan 2, 2025

Ticket:

https://app.clickup.com/t/36718269/4KDST-17

How to review this pull request

spacing.mov

@robherba robherba self-assigned this Jan 2, 2025
@robherba robherba changed the title chore(4kdst-17): Spacing token component created chore(4kdst-17): Spacing token Jan 2, 2025
@robherba robherba changed the title chore(4kdst-17): Spacing token 4KDST-17: Spacing token Jan 2, 2025
@robherba robherba changed the title 4KDST-17: Spacing token 4KDST-17: Spacing Token Jan 2, 2025
Copy link
Collaborator

@cienvaras cienvaras left a comment

Choose a reason for hiding this comment

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

@robherba Looks good! Just added a minor improvement suggestion.

<ul
className={clBase['sb-spacing-wrapper']}
style={{
gap: `${item.value}px`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is an improvement over the original UI Kit version, but let's use the variable instead of the hardcoded value:

Suggested change
gap: `${item.value}px`,
gap: `var(--spacing-${item.name})`,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants