-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6188763
commit a2ec857
Showing
6 changed files
with
31 additions
and
24 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
packages/eslint-plugin-pf-codemods/src/rules/v6/tokensUpdate/tokens-update.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### tokens-update | ||
|
||
We have updated our CSS tokens. About half of our tokens have been replaced with newer ones. | ||
|
||
- this rule provides an autofix for global non color tokens | ||
- global color tokens will be replaced with a temporary hot pink color token (`temp_dev_tbd` react token or `--pf-t--temp--dev--tbd` class) | ||
- don't forget to replace these tokens later | ||
- other non-global (component or chart) tokens need to be replaced manually | ||
|
||
To find a suitable replacement token, check our [v6 token documentation](https://staging-v6.patternfly.org/tokens/all-patternfly-tokens). | ||
|
||
#### Examples | ||
|
||
In: | ||
|
||
```jsx | ||
%inputExample% | ||
``` | ||
|
||
Out: | ||
|
||
```jsx | ||
%outputExample% | ||
``` |
2 changes: 1 addition & 1 deletion
2
...c/rules/v6/tokensWarn/tokens-warn.test.ts → ...les/v6/tokensUpdate/tokens-update.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 0 additions & 17 deletions
17
packages/eslint-plugin-pf-codemods/src/rules/v6/tokensWarn/tokens-warn.md
This file was deleted.
Oops, something went wrong.