Skip to content

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.

3 participants