-
Notifications
You must be signed in to change notification settings - Fork 44
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
Design tokens - create border radius tokens (HDS-3948) #2595
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have left a couple of comments (one may be a blocker, in the sense that requires some conversation with the designers).
Apart from that (and the need for two changeset entries, I think) everything else makes sense to me (I've also checked all the replacements in CSS and they match the old ones)
@@ -3,6 +3,10 @@ | |||
*/ | |||
|
|||
:root { | |||
--token-border-radius-x-small: 3px; | |||
--token-border-radius-small: 5px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[issue/blocker]: comment for @jorytindall and @hashicorp/hds-design in general: this is the first case of t-shirt naming for our design tokens; what if we need to add a 4px
border radius in the future? what would be the name?
should we use a different naming convention? maybe
--token-border-radius-300: 3px;
--token-border-radius-500: 5px;
--token-border-radius-600: 6px;
--token-border-radius-800: 8px;
or maybe simply:
--token-border-radius-3: 3px;
--token-border-radius-5: 5px;
--token-border-radius-6: 6px;
--token-border-radius-8: 8px;
(I know, the last one is controversial, but that's what has been done for the spacing variables in Figma)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me surface this to the broader team for discussion, it's a valid point. We discussed initially what to do here and I can't quite remember what the reasoning was.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related Slack discussion thread: https://hashicorp.slack.com/archives/C025N5V4PFZ/p1734029185471359
… to derive border-radius used in dropdown toggle
@didoo I crossed out updated ones above. |
This comment was marked as resolved.
This comment was marked as resolved.
So anyway, other than the question on token naming (and whether to even have the tokens) does this PR look good (for now)? |
📌 Summary
If merged, this PR adds design tokens for border radius values and updates relevant CSS code to make use of the tokens.
Code documentation: https://hds-website-git-hds-3948-create-border-tokens-hashicorp.vercel.app/foundations/border?tab=code
🛠️ Detailed description
🔗 External links
👀 Component checklist
💬 Please consider using conventional comments when reviewing this PR.