Skip to content

Commit

Permalink
Merge branch 'main' into actionlist-followup
Browse files Browse the repository at this point in the history
  • Loading branch information
langermank authored Dec 3, 2021
2 parents bedd2bc + ee27583 commit ccdf182
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/shy-vans-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Add hover and active states to btn-invisible
10 changes: 7 additions & 3 deletions src/buttons/misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,12 @@
color: var(--color-accent-fg);
background-color: transparent; // Reset default gradient backgrounds and colors
border: 0;
border-radius: 0;
box-shadow: none;

&:hover,
&.zeroclipboard-is-hover {
color: var(--color-accent-fg);
background: none;
background-color: var(--color-btn-hover-bg);
outline: none;
box-shadow: none;
}
Expand All @@ -54,12 +53,17 @@
&[aria-selected=true],
&.zeroclipboard-is-active {
color: var(--color-accent-fg);
background: none;
background-color: none;
border-color: var(--color-btn-active-border);
outline: none;
box-shadow: var(--color-btn-focus-shadow);
}

&:active
&.zeroclipboard-is-active {
background-color: var(--color-btn-selected-bg);
}

&:disabled,
&.disabled,
&[aria-disabled=true] {
Expand Down

0 comments on commit ccdf182

Please sign in to comment.