Skip to content

Commit 4abb1af

Browse files
Marketing: Add disabled states for buttons (and tweak hover) (#1768)
* Add disabled styles * Make sure links aren't decorated * Create orange-camels-heal.md * Stylelint auto-fixes Co-authored-by: Actions Auto Build <[email protected]>
1 parent 8e9ba62 commit 4abb1af

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.changeset/orange-camels-heal.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@primer/css": patch
3+
---
4+
5+
Marketing: Add disabled states for buttons (and tweak hover)

src/marketing/buttons/button.scss

+8
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
}
3939

4040
&:hover {
41+
text-decoration: none;
4142
box-shadow: var(--color-mktg-btn-shadow-hover) !important;
4243
}
4344

@@ -68,6 +69,13 @@
6869
opacity: 0.5 !important;
6970
}
7071
}
72+
73+
&.disabled,
74+
&[disabled] {
75+
pointer-events: none;
76+
cursor: default;
77+
opacity: 0.5;
78+
}
7179
}
7280

7381
.btn-muted-mktg {

0 commit comments

Comments
 (0)