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

Theme token cleanups #4732

Merged
merged 17 commits into from
Jan 25, 2025
Merged

Theme token cleanups #4732

merged 17 commits into from
Jan 25, 2025

Conversation

taysea
Copy link
Collaborator

@taysea taysea commented Jan 23, 2025

Deploy Preview

What does this PR do?

This modifies up theme.jsx to cleanup some lingering comments and fix how some component styles are being built up to better capture the necessary states (particularly touched checkbox, radiogroup, select).

Additionall this PR:

  • Fixes some token values that were incorrect in both the current and updated styling
  • Enhances the "Select" example on the sticker sheet to have a rich render.

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)

Should this PR be mentioned in Design System updates?

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

Copy link

netlify bot commented Jan 23, 2025

Deploy Preview for unrivaled-bublanina-3a9bae ready!

Name Link
🔨 Latest commit f0536bb
🔍 Latest deploy log https://app.netlify.com/sites/unrivaled-bublanina-3a9bae/deploys/67942e3675c74800082cdaef
😎 Deploy Preview https://deploy-preview-4732--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.

@@ -802,6 +802,18 @@
}
}
},
"450": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI -- Adding this color now to match Joelle's theme update designs. We have a lot of similar greens, so it would be worth revisiting and seeing if any can be pruned/consolidated.


const CustomOption = styled(Box)`
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

FYI -- here is my proposal for how grommet teams can achieve the "bookend" easily. I'm thinking we should either::

  • Have a recipe on our site for it
  • Export it with grommet-theme-hpe

@@ -742,6 +758,9 @@ const buildTheme = (tokens, flags) => {
radius: components.hpe.formField.medium.input.container.borderRadius,
color: components.hpe.formField.input.container.rest.borderColor,
},
disabled: {
opacity: 1,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is so that the disabled colors can drive the styling.

@@ -2649,9 +2682,6 @@ const buildTheme = (tokens, flags) => {
},
},
},
buttonGroup: {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is not part of Grommet theme object, is just something we have locally in aries theme. Removing so it doesn't end up in grommet-theme-hpe.

Copy link

changeset-bot bot commented Jan 23, 2025

⚠️ No Changeset found

Latest commit: d054122

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@taysea taysea requested a review from halocline January 23, 2025 04:18
Copy link

netlify bot commented Jan 24, 2025

Deploy Preview for rad-shortbread-897892 ready!

Name Link
🔨 Latest commit f0536bb
🔍 Latest deploy log https://app.netlify.com/sites/rad-shortbread-897892/deploys/67942e364d260200088257b9
😎 Deploy Preview https://deploy-preview-4732--rad-shortbread-897892.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 taysea merged commit 6e537e1 into master Jan 25, 2025
12 of 13 checks passed
@taysea taysea deleted the theme-token-cleanups branch January 25, 2025 00:27
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