8000 feat(Progress): consumed Penta tokens by thatblindgeye · Pull Request #6150 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

feat(Progress): consumed Penta tokens#6150

Merged
mcoker merged 2 commits intopatternfly:v6from
thatblindgeye:progressPenta
Dec 22, 2023
Merged

feat(Progress): consumed Penta tokens#6150
mcoker merged 2 commits intopatternfly:v6from
thatblindgeye:progressPenta

Conversation

@thatblindgeye
Copy link
Contributor

Closes #5737

@thatblindgeye thatblindgeye requested review from a team, andrew-ronaldson, lboehling, mattnolting and srambach and removed request for a team December 14, 2023 20:17
@patternfly-build
Copy link
Collaborator
patternfly-build commented Dec 14, 2023

@thatblindgeye thatblindgeye linked an issue Dec 14, 2023 that may be closed by this pull request
Copy link
Member
@srambach srambach left a comment

Choose a reason for hiding this comment

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

Looks great! 🥇

Comment on lines +22 to +24
--#{$progress}--m-success__status-icon--Color: var(--pf-t--global--color--status--success--default);
--#{$progress}--m-warning__status-icon--Color: var(--pf-t--global--color--status--warning--default);
--#{$progress}--m-danger__status-icon--Color: var(--pf-t--global--color--status--danger--default);
Copy link
Contributor

Choose a reason for hiding this comment

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

I think these should use the icon color tokens. In the designs, looks like the success icon just uses the global success color as you have here, but the warning/danger icons use the warning/danger icon color tokens - I'm assuming the success color in figma is a bug and should use the icon success color, too.

Copy link
Contributor
@mcoker mcoker left a comment

Choose a reason for hiding this comment

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

Just a few things!

--#{$progress}--m-inside__measure--FontSize: var(--pf-t--global--font--size--sm);
--#{$progress}--m-outside__measure--FontSize: var(--pf-t--global--font--size--sm);
--#{$progress}--m-sm__bar--Height: var(--pf-t--global--spacer--sm);
--#{$progress}--m-sm__measure--FontSize: var(--pf-t--global--font--size--xs);
Copy link
Contributor

Choose a reason for hiding this comment

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

in figma, looks like we want to use the font--size--body--sm token

--pf-t--global--font--size--body--sm: var(--pf-t--global--font--size--xs);

Screenshot 2023-12-20 at 3 54 17 PM

--#{$progress}__bar--before--BackgroundColor: var(--#{$progress}--m-success__bar--BackgroundColor);
--#{$progress}__indicator--BackgroundColor: var(--#{$progress}--m-success__bar--BackgroundColor);
--#{$progress}__status-icon--Color: var(--#{$progress}--m-success__status-icon--Color);
--#{$progress}--m-inside__measure--Color: var(--#{$progress}--m-success--m-inside__measure--Color);
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this should be added back, and the var pointing to the text--color--on-success token. Currently the color on the success indicator works, but it's using the on-brand token.

&.pf-m-danger {
--#{$progress}__bar--before--BackgroundColor: var(--#{$progress}--m-danger__bar--BackgroundColor);
--#{$progress}__indicator--BackgroundColor: var(--#{$progress}--m-danger__bar--BackgroundColor);
Copy link
Contributor

Choose a reason for hiding this comment

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

Just a nit, but since these are changes to the indicator color, the value used here should probably be var(--#{$progress}--m-danger__indicator--BackgroundColor)

@mcoker mcoker merged commit b75b0cd into patternfly:v6 Dec 22, 2023
@patternfly-build
Copy link
Collaborator

🎉 This PR is included in version 6.0.0-alpha.48 🎉

The release is available on:

Your semantic-release bot 📦🚀

mattnolting pushed a commit to mattnolting/patternfly that referenced this pull request Jan 2, 2024
mattnolting pushed a commit to mattnolting/patternfly that referenced this pull request Jan 3, 2024
mattnolting pushed a commit to mattnolting/patternfly that referenced this pull request Jan 4, 2024
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.

Consume tokens: Progress

5 participants

0