8000 fix(slider): adjust styles by mcoker · Pull Request #6981 · patternfly/patternfly · GitHub
[go: up one dir, main page]

Skip to content

fix(slider): adjust styles#6981

Merged
mcoker merged 3 commits intopatternfly:v6from
mcoker:issue-6977
Aug 16, 2024
Merged

fix(slider): adjust styles#6981
mcoker merged 3 commits intopatternfly:v6from
mcoker:issue-6977

Conversation

@mcoker
Copy link
Contributor
@mcoker mcoker commented Aug 15, 2024

fixes #6977 and pulls in the latest tokens from patternfly/design-tokens#82

@lboehling the only difference I see in the between what's in the PR and in the referenced issue is the disabled/unfilled tick color (updated to --pf-t--global--icon--color--on-disabled). In the design screenshot, the tick color is lighter than the background, but --pf-t--global--icon--color--on-disabled is a darker color. Not sure if anything needs to be updated there?

@patternfly-build
Copy link
Collaborator
patternfly-build commented Aug 15, 2024

Copy link
@lboehling lboehling 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, thank u!! left one suggestion re: the on-disabled tick color.

--#{$slider}__step-tick--Width: 0.15rem;
--#{$slider}__step-tick--Height: #{pf-size-prem(4px)};
--#{$slider}__step-tick--BackgroundColor: var(--pf-t--global--icon--color--subtle);
--#{$slider}__step-tick--BackgroundColor: var(--pf-t--global--icon--color--on-disabled);

Choose a reason for hiding this comment

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

now that i'm thinking about this more, we should probably use --pf-t--global--icon--color--nonstatus--on-gray--default here. It will still look darker than the design screenshot in the issue (I didn't update the tick color token in the screenshot!).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor
@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

Not necessarily a blocker, but for the "Actions" example, is the slider itself meant to be disabled along with the input? Second Slider in the below screenshot. Otherwise lgtm

Three sliders showing various actions

@mcoker
Copy link
Contributor Author
mcoker commented Aug 16, 2024

@thatblindgeye nice catch! Looking at what's in v5 for react as how that should behave, looks like the slider and value input are disabled when the action is set to the lock. Updated that example to disable the slider.

@mcoker mcoker requested a review from thatblindgeye August 16, 2024 18:48
Copy link
Contributor
@thatblindgeye thatblindgeye left a comment

Choose a reason for hiding this comment

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

🐝 -utiful

Copy link
@lboehling lboehling left a comment

Choose a reason for hiding this comment

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

perfect!! thanks for the quick work on this!!

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.

🛝

@mcoker mcoker merged commit 5c6efb9 into patternfly:v6 Aug 16, 2024
@patternfly-build
Copy link
Collaborator

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

The release is available on:

Your semantic-release bot 📦🚀

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.

5 participants

0