diff --git a/.changeset/warm-mails-fry.md b/.changeset/warm-mails-fry.md new file mode 100644 index 0000000..2030a42 --- /dev/null +++ b/.changeset/warm-mails-fry.md @@ -0,0 +1,9 @@ +--- +"@api-viewer/demo": patch +"@api-viewer/common": patch +"@api-viewer/docs": patch +"@api-viewer/tabs": patch +"api-viewer-element": patch +--- + +Use proper selector for demo copy button styles diff --git a/packages/api-demo/src/styles.ts b/packages/api-demo/src/styles.ts index 17ed44a..b20860f 100644 --- a/packages/api-demo/src/styles.ts +++ b/packages/api-demo/src/styles.ts @@ -60,7 +60,7 @@ const highlightTheme = css` `; const demoStyles = css` - button { + [part='button'] { position: absolute; top: 0.5rem; right: 0.5rem; @@ -72,8 +72,8 @@ const demoStyles = css` color: var(--ave-button-color, #fff); } - button:focus, - button:hover { + [part='button']:focus, + [part='button']:hover { background: var(--ave-button-active-background, rgba(0, 0, 0, 0.6)); }