Repository navigation
Conversation
🤖 PR meta 🤖📦 Bundle sizeSize Change: +3 B (0%) Total Size: 8 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
|
Member
Author
|
We had a discussion ~month ago offline that we wouldn't include this component in the design system, just forgot to close then. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
WIP
What?
Adds a "copy to clipboard"
ClipboardButtoncomponent that follows best UX and accessibility practices.We have a number of places around Gutenberg where we implement this type of UI, and it's a common UI pattern in plugins, too.
UX
Todo:
Why?
How?
Adds
ClipboardButtonwithClipboardButton.IconandClipboardButton.Labelsub components which allows composing component for different visual situations:Leans heavily on being a button visually and loans a lot from
IconButtoncomponent, includingshortcuthelper.Testing Instructions
Run Storybook with
npm run storybook:devSee the docs at
/?path=/docs/design-system-components-clipboardbutton--docsTesting Instructions for Keyboard
Screenshots or screencast
WIP
Use of AI Tools
yes