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-12: Component Library / Tokens / Breakpoints #9

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

Conversation

joetower
Copy link

@joetower joetower commented Dec 20, 2024

Summary

This PR fixes/implements the following bugs/features

  • Adds breakpoints tokens story and typescript file
  • Matches the UI-Kit presentation of the Breakpoints Story

How to review this pull request

emulsify-react-breakpoints

@joetower joetower changed the title feat(4KDST-12): breakpoints tokens story matches UI-Kit 4KDST-12: Component Library / Tokens / Breakpoints Dec 20, 2024
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.

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

</span>
<span className={clBase['sb-list__visualization']}
style={{
width: `${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, let's use the variable instead of the hardcoded value:

Suggested change
width: `${item.value}px`,
width: `var(--breakpoint-${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