Skip to content

Commit

Permalink
Marketing: Add disabled states for buttons (and tweak hover) (#1768)
Browse files Browse the repository at this point in the history
* Add disabled styles

* Make sure links aren't decorated

* Create orange-camels-heal.md

* Stylelint auto-fixes

Co-authored-by: Actions Auto Build <actions@github.com>
  • Loading branch information
tobiasahlin and actions-user committed Dec 6, 2021
1 parent 8e9ba62 commit 4abb1af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/orange-camels-heal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@primer/css": patch
---

Marketing: Add disabled states for buttons (and tweak hover)
8 changes: 8 additions & 0 deletions src/marketing/buttons/button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
}

&:hover {
text-decoration: none;
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
}

Expand Down Expand Up @@ -68,6 +69,13 @@
opacity: 0.5 !important;
}
}

&.disabled,
&[disabled] {
pointer-events: none;
cursor: default;
opacity: 0.5;
}
}

.btn-muted-mktg {
Expand Down

0 comments on commit 4abb1af

Please sign in to comment.