Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(tokens): warn for CSS variables in strings #755

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

adamviktora
Copy link
Contributor

Towards #748

Provides warnings also for variables in strings.

We might want to merge this now, so consumers have at least warnings, that this token is old and I'll work on the fixer as a followup.

"global_warning_color_100",
"global_warning_color_200",
];
// consumers may run class-name-updater before codemods, so we have to check also old tokens with v6 prefix
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this still applicable after changes made in #754 ?

Copy link
Contributor Author

@adamviktora adamviktora Aug 28, 2024

Choose a reason for hiding this comment

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

We probably don't need it, at least not for the global tokens. Related to component tokens, I posted an issue with that on slack, they will still get updated to v6.

I would rather keep it there if someone has already run the old version of class-name-updater, but if you think it is not necessary, we can remove it

Copy link
Collaborator

Choose a reason for hiding this comment

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

I would rather keep it there if someone has already run the old version of class-name-updater

I'm good with keeping it for this

Copy link
Collaborator

@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.

Merging now, will keep the linked issue open to track the autofixer work

@thatblindgeye thatblindgeye merged commit 5ef0d4d into patternfly:main Aug 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants