From de6621073ec9d3d11a931add51a4731ba64a7842 Mon Sep 17 00:00:00 2001 From: melloware Date: Fri, 15 Mar 2024 19:06:35 -0400 Subject: [PATCH] Fix #6163: p-hidden-accessible modernization --- components/lib/componentbase/ComponentBase.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/components/lib/componentbase/ComponentBase.js b/components/lib/componentbase/ComponentBase.js index a5edf8ecf5..c3f410a4fa 100644 --- a/components/lib/componentbase/ComponentBase.js +++ b/components/lib/componentbase/ComponentBase.js @@ -4,14 +4,15 @@ import { ObjectUtils, classNames, mergeProps } from '../utils/Utils'; const baseStyle = ` .p-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; + border: 0 !important; + padding: 0 !important; + margin: -1px !important; + position: absolute !important; + height: 1px !important; + width: 1px !important; + overflow: hidden !important; + clip-path: inset(50%) !important; + white-space: nowrap !important; } .p-hidden-accessible input,