Skip to content

Commit 1415d7b

Browse files
committed
test(action-sheet): remove button state
1 parent 3240e88 commit 1415d7b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

core/src/components/action-sheet/action-sheet.scss

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@
101101
font-family: inherit;
102102

103103
overflow: hidden;
104-
105-
z-index: 0;
106104
}
107105

108106
.action-sheet-button:disabled {
@@ -125,7 +123,7 @@
125123
width: 100%;
126124
height: 100%;
127125

128-
// z-index: 1;
126+
z-index: 1;
129127
}
130128

131129
.action-sheet-container {
@@ -218,6 +216,9 @@
218216
.action-sheet-button.ion-focused {
219217
color: var(--button-color-focused);
220218

219+
background-color: var(--button-background-focused);
220+
opacity: var(--button-background-focused-opacity);
221+
221222
&::after {
222223
background: var(--button-background-focused);
223224

core/src/components/action-sheet/action-sheet.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface {
410410
class={buttonClass(b)}
411411
onClick={() => this.buttonClick(b)}
412412
disabled={b.disabled}
413+
tabIndex={b.disabled ? -1 : 0}
413414
>
414415
<span class="action-sheet-button-inner">
415416
{b.icon && <ion-icon icon={b.icon} aria-hidden="true" lazy={false} class="action-sheet-icon" />}

0 commit comments

Comments
 (0)