Skip to content

Commit 44dd264

Browse files
committed
update snapshot for button
1 parent 698e6a8 commit 44dd264

File tree

2 files changed

+37
-4
lines changed

2 files changed

+37
-4
lines changed

src/__tests__/__snapshots__/ActionMenu.test.tsx.snap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,13 @@ exports[`ActionMenu renders consistently 1`] = `
8787
}
8888
8989
.c1:active:not([disabled]) {
90-
background-color: hsla(220,14%,94%,1);
91-
box-shadow: inset 0 0.15em 0.3em rgba(27,31,36,0.15);
90+
background-color: hsla(220,14%,93%,1);
91+
border-color: rgba(27,31,36,0.15);
92+
}
93+
94+
.c1[aria-expanded=true] {
95+
background-color: hsla(220,14%,93%,1);
96+
border-color: rgba(27,31,36,0.15);
9297
}
9398
9499
<div

src/__tests__/__snapshots__/Button.test.tsx.snap

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,13 @@ exports[`Button renders consistently 1`] = `
7676
}
7777
7878
.c0:active:not([disabled]) {
79-
background-color: hsla(220,14%,94%,1);
80-
box-shadow: inset 0 0.15em 0.3em rgba(27,31,36,0.15);
79+
background-color: hsla(220,14%,93%,1);
80+
border-color: rgba(27,31,36,0.15);
81+
}
82+
83+
.c0[aria-expanded=true] {
84+
background-color: hsla(220,14%,93%,1);
85+
border-color: rgba(27,31,36,0.15);
8186
}
8287
8388
<button
@@ -182,6 +187,13 @@ exports[`Button styles danger button appropriately 1`] = `
182187
border-color: btn.danger.selectedBorder;
183188
}
184189
190+
.c0[aria-expanded=true] {
191+
color: btn.danger.selectedText;
192+
background-color: btn.danger.selectedBg;
193+
box-shadow: undefined;
194+
border-color: btn.danger.selectedBorder;
195+
}
196+
185197
<button
186198
class="c0"
187199
>
@@ -270,6 +282,10 @@ exports[`Button styles invisible button appropriately 1`] = `
270282
background-color: btn.selectedBg;
271283
}
272284
285+
.c0[aria-expanded=true] {
286+
background-color: btn.selectedBg;
287+
}
288+
273289
<button
274290
class="c0"
275291
>
@@ -377,6 +393,13 @@ exports[`Button styles outline button appropriately 1`] = `
377393
border-color: btn.outline.selectedBorder;
378394
}
379395
396+
.c0[aria-expanded=true] {
397+
color: btn.outline.selectedText;
398+
background-color: btn.outline.selectedBg;
399+
box-shadow: undefined;
400+
border-color: btn.outline.selectedBorder;
401+
}
402+
380403
<button
381404
class="c0"
382405
>
@@ -471,6 +494,11 @@ exports[`Button styles primary button appropriately 1`] = `
471494
box-shadow: undefined;
472495
}
473496
497+
.c0[aria-expanded=true] {
498+
background-color: btn.primary.selectedBg;
499+
box-shadow: undefined;
500+
}
501+
474502
<button
475503
class="c0"
476504
>

0 commit comments

Comments
 (0)