spectrum-web-components
spectrum-web-components copied to clipboard
[Feat]: Upgrade docs copy/paste for import inclusions
Code of conduct
- [X] I agree to follow this project's code of conduct.
Impacted component(s)
Docs
Description of the requested feature
As referenced in #2291
Can we update the copy/paste functionality in the docs site to include import statements both for the element being documented and any other top level elements used that would otherwise not be imported directly in the element.
Mockups or screenshots
No response
Implementation notes or ideas
No response
What if we added a second button that includes the imports referenced in the HTML fragment?
Also leverage function() { navigator.clipboard.writeText(el.innerText); }
as needed to include text formatting in the copy.
fixed via #4598