Skip to content

feat(Slider): consumed Penta tokens#6157

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

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

Conversation

@thatblindgeye

Copy link
Copy Markdown
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

patternfly-build commented Dec 18, 2023

Copy link
Copy Markdown
Collaborator

--#{$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
Copy Markdown
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?

@andrew-ronaldson andrew-ronaldson left a comment

Copy link
Copy Markdown
Collaborator

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
Copy Markdown
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
Copy Markdown
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