Website: Fix focus and brand gradient token names in color palette #3267
+2
−2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📌 Summary
If merged, this PR would fix the names displayed in the website color palette for the focus tokens and the brand gradient tokens, to display their full names.
🛠️ Detailed description
In the existing color palette page on the website, each token is displayed with its full name on each card. However, due to an issue with the script that generates these names currently the tokens for focus and brand gradients are having only part of their name displayed.
This is due to the fact that the script only displays the first two "paths" of the token name, which works for all other tokens except these, which go beyond 2 name levels. The script has been updated to be more flexible with these longer name paths.
Preview page
📸 Screenshots
Before


After


💬 Please consider using conventional comments when reviewing this PR.
📋 PCI review checklist
Examples of changes to controls include access controls, encryption, logging, etc.
Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.