docs(icon): update size ranges in Style table#3110
Conversation
Correct icon set size values and normalize the Icon set column label on the Style docs page. Co-authored-by: Cursor <cursoragent@cursor.com>
|
✅ Deploy Preview for red-hat-design-system ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 322 kB ℹ️ View Unchanged
|
Documentation HealthNo relevant changes in this PR. |
The demos layout rendered 90-demos.md twice, which duplicated the icon demos info alert. Co-authored-by: Cursor <cursoragent@cursor.com>
adamjohnson
left a comment
There was a problem hiding this comment.
In the PR summary, it might be good to also mention the changes to element.11ty.ts. They remove the double "Looking for icons?" alert seen on uxdot versus this PR's deploy preview.
Currently, rh-icon is the only element with a 90-demos.md file, so this is a safe change to make.
| | Standard (default) | 24px - 128px | | ||
| | UI | 16px - 24 pixels | | ||
| | Micron | 8px - 12px | | ||
| | Social media | 16px - 24 pixels | |
There was a problem hiding this comment.
This table now mixes px and pixels. Should the second value under Size range always use pixels?
| | Social media | 14px - 24 pixels | | ||
| | Standard (default) | 24px - 128px | | ||
| | UI | 16px - 24 pixels | | ||
| | Micron | 8px - 12px | |
There was a problem hiding this comment.
We need to account for 14px UI icons, like in the Felt-themed compact CTA.
There was a problem hiding this comment.
We'll need to check with Brand about the size ranges for the icon sets. Their "Standard icons" page says it works best for 32 - 100px, and their "UI icons" page says: "UI icons are designed to be used between 16px and 32px. Microns are extremely small, and are designed to be used between 10px and 20px." Not sure if those were updated after our rh-icon docs were published.
There was a problem hiding this comment.
@marionnegp I think our design tokens should be what the Brand team follows, not the other way around. We don't have a token for 100px icon size.
It sounds like in the near future we will need a token for the 14px icon size, so I guess that change can be reverted.
Also, it doesn't make visual sense to be using pixels and px. Can we choose one over the other?
There was a problem hiding this comment.
Can you add the icon size ranges as a topic for our DPO systems group or pose the question in a Slack channel with the Brand team? I think we'd want their values to be consistent with ours and PatternFly's, unless there's another design use case that needs non-token values.
I'd choose px because that's used more consistently throughout our docs.
I've created an issue in the tokens repo to add more icon size tokens.
coreyvickery
left a comment
There was a problem hiding this comment.
@adamjohnson Need to revert line 51 back to its original range.
| | Micron | 8px - 12 pixels | | ||
| | Social media | 14px - 24 pixels | | ||
| | Standard (default) | 24px - 128px | | ||
| | UI | 16px - 24 pixels | |
There was a problem hiding this comment.
| | UI | 16px - 24 pixels | | |
| | UI | 14px - 24 pixels | |
Summary
Icon set, Standard max128px, UI/Social min16px, and Micron max12px.Test plan
/elements/icon/style/Made with Cursor