Skip to content

fix(tokens): rename file and add no-motion modifier#6711

Merged
mcoker merged 2 commits into
patternfly:v6from
srambach:6516-motion-structure
May 30, 2024
Merged

fix(tokens): rename file and add no-motion modifier#6711
mcoker merged 2 commits into
patternfly:v6from
srambach:6516-motion-structure

Conversation

@srambach

Copy link
Copy Markdown
Member

This renames the tokens-font file to be tokens-local since it evolved to include more than just font - e.g. the transition token override for turning off motion completely is added there in this PR.

Fixes #6516
Fixes #6682

@patternfly-build

patternfly-build commented May 29, 2024

Copy link
Copy Markdown
Collaborator

@mcoker mcoker left a comment

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.

🍰

Comment on lines +150 to +151
.pf-m-no-motion {
// Set all motion tokens to 0 for testing purposes

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.

From the comment that it's for testing, this may not be relevant, but I think a good place for this would be patternfly-common.scss. And just a thought, but if this should stomp on all animations, I wonder if we should consider adding !important to these declarations?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I debated about where to put it. I think you're right. I'll move it and add the !important

@srambach srambach requested a review from mcoker May 30, 2024 14:08

@mcoker mcoker left a comment

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.

🎃👍

@mcoker mcoker merged commit c2205c3 into patternfly:v6 May 30, 2024
@patternfly-build

Copy link
Copy Markdown
Collaborator

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

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.

Rename the custom/local tokens stylesheet

3 participants