Frontend: Catalog copy button could be like issues and MR
The following discussion from !134805 (merged) should be addressed:
-
@afontaine started a discussion: (+1 comment) This looks good to me @f_caplette for a first iteration.
What do you think of importing our behaviour in MRs and issues where the copy button shows up upon hovering over a code block? Presumably that is a reusable component as well
🙂 see the copy button here?
Proposals
Readme | Component tab |
---|---|
readme-copy-catalog | component-tab-copy-catalog |
- Make the component tab's code snippet box behavior consistent.
- Hover over, showing the copy button.
- The button has a tooltip
Copy to clipboard
- The button has a tooltip
- Once clicked, show the button tooltip
Copied
Edited by Sunjung Park