-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Storybook: Support keyword search in Icon Library #67442
base: trunk
Are you sure you want to change the base?
Conversation
) | ||
: availableIcons; | ||
return ( | ||
<div style={ { padding: 20 } }> | ||
<label htmlFor="filter-icon" style={ { paddingRight: 10 } }> | ||
<label htmlFor="filter-icons" style={ { paddingRight: 10 } }> |
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.
Small accessibility error here.
cancelCircleFilled: [ 'close' ], | ||
create: [ 'add' ], | ||
file: [ 'folder' ], | ||
seen: [ 'show' ], | ||
thumbsDown: [ 'dislike' ], | ||
thumbsUp: [ 'like' ], | ||
trash: [ 'delete' ], | ||
unseen: [ 'hide' ], | ||
warning: [ 'alert', 'caution' ], |
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.
@WordPress/gutenberg-design I assume there will also be some keywords we don't want to add, to discourage people misusing icons for certain things? I added some obvious keywords to start, but let me know if there's something that should be removed. (Maybe we could document those no-nos.)
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Size Change: 0 B Total Size: 1.83 MB ℹ️ View Unchanged
|
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.
What?
Support keyword search for the Icon Library in Storybook.
Why?
I was looking at some new icons being added in #61106 (comment) and thought we're at the point where keyword searching could be useful.
How?
Not sure if we'll eventually want to use this metadata elsewhere, but for now I added a separate file with keywords for certain icons.
Testing Instructions
See the Storybook story for Icons ▸ Library.
Screenshots or screencast