From 68f11a21b52d8f54ceb1542199acfdab69cf2239 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Mon, 14 Oct 2024 14:08:08 -0700 Subject: [PATCH 01/27] test(action-sheet): dev build tests --- core/src/components/action-sheet/action-sheet.md.scss | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet.md.scss b/core/src/components/action-sheet/action-sheet.md.scss index e3480feefe4..7e56e692eb6 100644 --- a/core/src/components/action-sheet/action-sheet.md.scss +++ b/core/src/components/action-sheet/action-sheet.md.scss @@ -66,16 +66,16 @@ .action-sheet-button { @include padding($action-sheet-md-button-padding-top, $action-sheet-md-button-padding-end, $action-sheet-md-button-padding-bottom, $action-sheet-md-button-padding-start); - position: relative; + // position: relative; min-height: $action-sheet-md-button-height; font-size: $action-sheet-md-button-font-size; - text-align: $action-sheet-md-text-align; + // text-align: $action-sheet-md-text-align; contain: content; - overflow: hidden; + // overflow: hidden; } .action-sheet-icon { From be4a5048483851ae90bad18e91547a57f62177ef Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Mon, 14 Oct 2024 14:18:46 -0700 Subject: [PATCH 02/27] test(action-sheet): simplify styles --- core/src/components/action-sheet/action-sheet.md.scss | 4 ++-- core/src/components/action-sheet/action-sheet.scss | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet.md.scss b/core/src/components/action-sheet/action-sheet.md.scss index 7e56e692eb6..0c0ceb1790b 100644 --- a/core/src/components/action-sheet/action-sheet.md.scss +++ b/core/src/components/action-sheet/action-sheet.md.scss @@ -72,9 +72,9 @@ font-size: $action-sheet-md-button-font-size; - // text-align: $action-sheet-md-text-align; + text-align: $action-sheet-md-text-align; - contain: content; + // contain: content; // overflow: hidden; } diff --git a/core/src/components/action-sheet/action-sheet.scss b/core/src/components/action-sheet/action-sheet.scss index 2519c214f3f..12d49c59017 100644 --- a/core/src/components/action-sheet/action-sheet.scss +++ b/core/src/components/action-sheet/action-sheet.scss @@ -118,7 +118,7 @@ flex-shrink: 0; align-items: center; justify-content: center; - pointer-events: none; + // pointer-events: none; width: 100%; height: 100%; @@ -177,9 +177,9 @@ // Action Sheet: States // -------------------------------------------------- -.action-sheet-button::after { - @include button-state(); -} +// .action-sheet-button::after { +// @include button-state(); +// } // Action Sheet: Selected From a42ad8655f52510bf726cbbcd8db090d05c8cdd4 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Mon, 14 Oct 2024 17:14:01 -0700 Subject: [PATCH 03/27] test(action-sheet): add tabIndex, revert styles --- core/src/components/action-sheet/action-sheet.md.scss | 6 +++--- core/src/components/action-sheet/action-sheet.scss | 8 ++++---- core/src/components/action-sheet/action-sheet.tsx | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/core/src/components/action-sheet/action-sheet.md.scss b/core/src/components/action-sheet/action-sheet.md.scss index 0c0ceb1790b..e3480feefe4 100644 --- a/core/src/components/action-sheet/action-sheet.md.scss +++ b/core/src/components/action-sheet/action-sheet.md.scss @@ -66,7 +66,7 @@ .action-sheet-button { @include padding($action-sheet-md-button-padding-top, $action-sheet-md-button-padding-end, $action-sheet-md-button-padding-bottom, $action-sheet-md-button-padding-start); - // position: relative; + position: relative; min-height: $action-sheet-md-button-height; @@ -74,8 +74,8 @@ text-align: $action-sheet-md-text-align; - // contain: content; - // overflow: hidden; + contain: content; + overflow: hidden; } .action-sheet-icon { diff --git a/core/src/components/action-sheet/action-sheet.scss b/core/src/components/action-sheet/action-sheet.scss index 12d49c59017..2519c214f3f 100644 --- a/core/src/components/action-sheet/action-sheet.scss +++ b/core/src/components/action-sheet/action-sheet.scss @@ -118,7 +118,7 @@ flex-shrink: 0; align-items: center; justify-content: center; - // pointer-events: none; + pointer-events: none; width: 100%; height: 100%; @@ -177,9 +177,9 @@ // Action Sheet: States // -------------------------------------------------- -// .action-sheet-button::after { -// @include button-state(); -// } +.action-sheet-button::after { + @include button-state(); +} // Action Sheet: Selected diff --git a/core/src/components/action-sheet/action-sheet.tsx b/core/src/components/action-sheet/action-sheet.tsx index 2d003a5dfc3..08e335f755b 100644 --- a/core/src/components/action-sheet/action-sheet.tsx +++ b/core/src/components/action-sheet/action-sheet.tsx @@ -410,6 +410,7 @@ export class ActionSheet implements ComponentInterface, OverlayInterface { class={buttonClass(b)} onClick={() => this.buttonClick(b)} disabled={b.disabled} + tabIndex={b.disabled ? -1 : 0} > {b.icon &&