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

Improve CSS output to make token parts clearer, align to docs #4644

Closed
wants to merge 3 commits into from

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Jan 7, 2025

Deploy Preview

What does this PR do?

This updates our style-dictionary output for CSS to align the CSS variable format with our docs: https://design-system.hpe.design/design-tokens/how-to-read-design-tokens#token-delimiters

Now, instead of relying on the built-in name/kebab transform (which auto hyphenated at camelCased words, eg. hpe.dataCell.paddingY --> hpe-data-cell-padding-y), we manage our own to maintain clarity on token parts (NEW output of hpe-dataCell-paddingY).

Where should the reviewer start?

What testing has been done on this PR?

In addition to the feature you are implementing, have you checked the following:

General UX Checks

  • Small, medium, and large screen sizes
  • Cross-browsers (FireFox, Chrome, and Safari)
  • Light & dark modes
  • All hyperlinks route properly

Accessibility Checks

  • Keyboard interactions
  • Screen reader experience
  • Run WAVE accessibility plugin (Chrome)

Code Quality Checks

  • Console is free of warnings and errors
  • Passes E2E commit checks
  • Visual snapshots are reasonable

How should this be manually tested?

Any background context you want to provide?

What are the relevant issues?

Screenshots (if appropriate)

Some example changes to CSS output:

Screenshot 2025-01-07 at 11 17 37 AM Screenshot 2025-01-07 at 11 18 51 AM

Should this PR be mentioned in Design System updates?

Is this change backwards compatible or is it a breaking change?

Copy link

changeset-bot bot commented Jan 7, 2025

🦋 Changeset detected

Latest commit: 48f1308

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
hpe-design-tokens Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

netlify bot commented Jan 7, 2025

Deploy Preview for unrivaled-bublanina-3a9bae ready!

Name Link
🔨 Latest commit 48f1308
🔍 Latest deploy log https://app.netlify.com/sites/unrivaled-bublanina-3a9bae/deploys/677d80541227d600086af205
😎 Deploy Preview https://deploy-preview-4644--unrivaled-bublanina-3a9bae.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@taysea
Copy link
Collaborator Author

taysea commented Jan 10, 2025

Closing, superseded by #4654

@taysea taysea closed this Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant