Skip to content

Commit 3b41f27

Browse files
authored
update flat button active styles (#302)
1 parent 225a454 commit 3b41f27

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/components/Button/components/RegularButton/RegularButton.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ const flatStyles = ({ theme, flat, secondary, ...otherProps }) =>
126126
0 2px 2px 0 rgba(12, 15, 20, 0.06), 0 4px 4px 0 rgba(12, 15, 20, 0.06);
127127
128128
&:active {
129-
background-color: ${theme.colors.p900};
130-
box-shadow: 0 0 0 1px rgba(12, 15, 20, 0.02),
131-
0 0 1px 0 rgba(12, 15, 20, 0.06), 0 2px 2px 0 rgba(12, 15, 20, 0.06);
129+
box-shadow: inset 0 4px 8px 0 rgba(12, 15, 20, 0.3);
132130
}
133131
134132
&:hover {

src/components/Button/components/RegularButton/__snapshots__/RegularButton.spec.js.snap

+2-4
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,7 @@ exports[`RegularButton should have flat button styles 1`] = `
191191
}
192192
193193
.circuit-0:active {
194-
background-color: #1641AC;
195-
box-shadow: 0 0 0 1px rgba(12,15,20,0.02),0 0 1px 0 rgba(12,15,20,0.06),0 2px 2px 0 rgba(12,15,20,0.06);
194+
box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3);
196195
}
197196
198197
.circuit-0:hover {
@@ -279,8 +278,7 @@ exports[`RegularButton should have flat disabled button styles 1`] = `
279278
}
280279
281280
.circuit-0:active {
282-
background-color: #1641AC;
283-
box-shadow: 0 0 0 1px rgba(12,15,20,0.02),0 0 1px 0 rgba(12,15,20,0.06),0 2px 2px 0 rgba(12,15,20,0.06);
281+
box-shadow: inset 0 4px 8px 0 rgba(12,15,20,0.3);
284282
}
285283
286284
.circuit-0:hover {

0 commit comments

Comments
 (0)