Skip to content

Commit

Permalink
fix: use proper selector for api-demo copy button styles (#201)
Browse files Browse the repository at this point in the history
  • Loading branch information
web-padawan committed Apr 5, 2024
1 parent 9a2c982 commit 91c394a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .changeset/warm-mails-fry.md
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions packages/api-demo/src/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const highlightTheme = css`
`;

const demoStyles = css`
button {
[part='button'] {
position: absolute;
top: 0.5rem;
right: 0.5rem;
Expand All @@ -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));
}
Expand Down

0 comments on commit 91c394a

Please sign in to comment.