From 50b5e2802a180f6ae9ad9ae0219471f711ffd32a Mon Sep 17 00:00:00 2001 From: Melloware Date: Fri, 15 Mar 2024 13:37:14 -0400 Subject: [PATCH] Modernize ui-helper-hidden-accessible Based on this https://stackoverflow.com/a/62109988/502366 --- themes/base/core.css | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/themes/base/core.css b/themes/base/core.css index 0f4f07951cf..1e104972bf8 100644 --- a/themes/base/core.css +++ b/themes/base/core.css @@ -16,13 +16,15 @@ } .ui-helper-hidden-accessible { border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; padding: 0; - position: absolute; + margin: 0; + position: absolute !important; + height: 1px; width: 1px; + overflow: hidden; + clip: rect(1px, 1px, 1px, 1px); + clip-path: inset(50%); + white-space: nowrap; } .ui-helper-reset { margin: 0;