Skip to content

Commit e38b436

Browse files
committed
feat: Make buttons look more clickable (#19698)
Signed-off-by: Keith Chong <[email protected]>
1 parent 5cf3610 commit e38b436

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/styles/elements/buttons.scss

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import '../theme';
2+
13
.argo-button {
24
cursor: pointer;
35
position: relative;
@@ -41,6 +43,10 @@
4143
&--base {
4244
color: $argo-color-gray-1;
4345
background-color: $argo-color-gray-6;
46+
@include themify($themes) {
47+
box-shadow: 1px 2px 5px 1px themed('shadow');
48+
}
49+
margin-right: 2px;
4450

4551
&:not(.disabled):not([disabled]) {
4652
&:hover {
@@ -95,7 +101,8 @@
95101

96102
&--base-o {
97103
color: $argo-color-teal-6;
98-
box-shadow: inset 0 0 0 1px $argo-color-teal-5;
104+
box-shadow: 1px 2px 5px 1px $argo-color-teal-5;
105+
margin-left: 2px;
99106

100107
&:not(.disabled):not([disabled]) {
101108
&:hover {
@@ -237,6 +244,7 @@
237244
&--special {
238245
color: #fff;
239246
background: $argo-color-teal-7;
247+
box-shadow: 1px 2px 5px 1px $argo-color-gray-7;
240248
&:not(.disabled) {
241249
&:hover {
242250
color: #fff;

src/styles/theme.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ $themes: (
1515
layout-loader-bg: rgba($argo-color-gray-7, 0.4),
1616
overlay: rgba(222, 222, 222, 0.62),
1717
shadow: $argo-color-gray-5,
18+
shadow-gray-8: $argo-color-gray-8,
1819
border: $argo-color-gray-3
1920
),
2021
dark: (
@@ -31,6 +32,7 @@ $themes: (
3132
layout-loader-bg: rgba($argo-color-gray-3, 0.4),
3233
overlay: rgba(70, 70, 70, 0.62),
3334
shadow: $dark-theme-background-1,
35+
shadow-gray-8: $argo-color-gray-9,
3436
border: $argo-color-gray-7
3537
)
3638
);

0 commit comments

Comments
 (0)