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

Skip to content

feat(Slider): consumed Penta tokens#6157

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

feat(Slider): consumed Penta tokens#6157
mcoker merged 2 commits intopatternfly:v6from
thatblindgeye:sliderPenta

Conversation

@thatblindgeye
Copy link
Contributor

Work towards #5738

@thatblindgeye thatblindgeye requested review from a team, andrew-ronaldson, mcoker and srambach and removed request for a team December 18, 2023 16:27
@patternfly-build
Copy link
Collabor 8000 ator
patternfly-build commented Dec 18, 2023

--#{$slider}__thumb--before--Height: var(--#{$pf-global}--target-size--MinHeight);
--#{$slider}__thumb--before--BorderRadius: var(--#{$pf-global}--BorderRadius--lg);
0 0 2px 5px var(--pf-t--global--color--nonstatus--blue--clicked);
--#{$slider}__thumb--before--Width: 44px;
Copy link
Member

Choose a reason for hiding this comment

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

My only question is whether we want to keep using the global target size here (maybe just for now) and I would guess we might want to make this a dimension token in the future?

Copy link
Collaborator
@andrew-ronaldson andrew-ronaldson left a comment

Choose a reason for hiding this comment

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

I saw the height of the rail is 0.25rem which technically matches the token but wanted to see if we are explicitly defining the variables as px or rem.

--#{$slider}__thumb--TranslateX: -50%;
--#{$slider}__thumb--TranslateY: -50%;
--#{$slider}__thumb--BorderRadius: var(--#{$pf-global}--BorderRadius--lg);
--#{$slider}__thumb--BorderRadius: var(--pf-t--global--border--radius--large);
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 a circle border radius would be useful - cc @lboehling. The value would be "50%" and it will make any square a circle, regardless of size.

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

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

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.

6 participants

0