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

fix: update styles on color page #4157

Merged
merged 5 commits into from
Jul 31, 2024

Conversation

nicolethoen
Copy link
Collaborator

Closes #4067
Closes #4073

@patternfly-build
Copy link
Contributor

patternfly-build commented Jul 25, 2024

@edonehoo
Copy link
Collaborator

A few things I noticed:

  1. In dark mode, the text on the color families doesn't update and can't be read in some cases:
image
  1. Also in the families, there are sometimes no tokens listed (which maybe there are just no tokens related to the color? but it looks like there should be some listed):
image
  1. Related to ^ Should we change the label from "CSS variables" to "Tokens" in the expanded family sections?

  2. This is small, but the primary background color swatch has a background, even before you hover:

image

To check the contrast between background and text colors, use a <a href="https://color.a11y.com/?wc3" target="_blank" className="pf-m-link">WCAG AA-compliance tool.</a>

<Divider/>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
<Divider/>

@nicolethoen
Copy link
Collaborator Author

4. This is small, but the primary background color swatch has a background, even before you hover:

That's because without a background color, the color swatch is invisible! 😆 I'm open to other color suggestions!

Also in the families, there are sometimes no tokens listed (which maybe there are just no tokens related to the color? but it looks like there should be some listed):

I can make a 'no semantic tokens message if there are none?

@edonehoo
Copy link
Collaborator

edonehoo commented Jul 30, 2024

That's because without a background color, the color swatch is invisible!

Oh, duh! 😆 I can't think of a different approach that's ~the golden ticket, so I think we can just stick with this one, just to get the info updated? And then maybe revisit with a designer to see if we want to change it

Copy link
Collaborator

@edonehoo edonehoo left a comment

Choose a reason for hiding this comment

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

I like it 🗣️

…delines/styles/colors/colors.md

Co-authored-by: Erin Donehoo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants