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

chore: Improve presentation of design token tables #1456

Merged
merged 13 commits into from
Jul 26, 2024

Conversation

VincentSmedinga
Copy link
Contributor

I discovered that the space token previews would shrink with the window size. Seems logical because we use the actual tokens for their widt. On the other hand, we display these for their largest width only and the idea is to show the slope of the scale. That’s better done by expressing the largest values in rems, which don’t depend on the window size but do scale with text if people choose to do so.

The tables in the Space docs now show the full token names (ams-space-xx) instead of just the size (xx) – they are in the ‘Design Tokens’ section after all, and this matches how we displayed it for Borders. Then, having ‘Extra Small’ etc. as row headings didn’t add that much anymore so I merged those.

Some other changes too to make things easier to grasp. And ‘example’ instead of ‘preview’: we use ‘Examples’ for stories as well.

@VincentSmedinga VincentSmedinga requested review from dlnr and alimpens July 25, 2024 15:44
@VincentSmedinga VincentSmedinga changed the title Chore/design token previews chore: Improve presentation of design token tables Jul 25, 2024
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 25, 2024 15:57 Destroyed
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 26, 2024 08:54 Destroyed
This reverts commit 041a4c6.

# Conflicts:
#	storybook/src/foundation/design-tokens/space.docs.mdx
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 26, 2024 11:57 Destroyed
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 26, 2024 12:56 Destroyed
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 26, 2024 13:27 Destroyed
@VincentSmedinga VincentSmedinga requested a review from alimpens July 26, 2024 13:28
@github-actions github-actions bot temporarily deployed to demo-design-token-previews July 26, 2024 14:23 Destroyed
@alimpens alimpens merged commit b7b5710 into develop Jul 26, 2024
6 checks passed
@alimpens alimpens deleted the chore/design-token-previews branch July 26, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants