From 2eb1dbd83c390015e81f637a01d6f544d037c868 Mon Sep 17 00:00:00 2001 From: Maria Hutt Date: Fri, 3 May 2024 12:28:37 -0700 Subject: [PATCH] fix(input): add focus ring to the clear input button for ionic theme (#29409) --- core/src/components/input/input.ionic.scss | 2 +- core/src/components/input/input.tsx | 2 +- core/src/components/input/test/basic/input.e2e.ts | 10 ++++------ 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/core/src/components/input/input.ionic.scss b/core/src/components/input/input.ionic.scss index 26eae66371..e322dbaa11 100644 --- a/core/src/components/input/input.ionic.scss +++ b/core/src/components/input/input.ionic.scss @@ -69,7 +69,7 @@ color: #{$ionic-color-neutral-500}; } -.input-clear-icon.ion-focused { +.input-clear-icon:focus-visible { @include border-radius($ionic-border-radius-rounded-small); outline: #{$ionic-border-size-medium} solid #{$ionic-color-primary-100}; diff --git a/core/src/components/input/input.tsx b/core/src/components/input/input.tsx index 98dee65228..b135ae99ba 100644 --- a/core/src/components/input/input.tsx +++ b/core/src/components/input/input.tsx @@ -843,7 +843,7 @@ export class Input implements ComponentInterface {