From 252dbc9e1447ae4d76e5a2d04ad0af0ead5d2727 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 1 Jan 2025 10:38:02 -0500 Subject: [PATCH] Fix #4214: Screenreader improve hidden accessible --- packages/core/src/base/style/BaseStyle.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/packages/core/src/base/style/BaseStyle.js b/packages/core/src/base/style/BaseStyle.js index 6b93daadf3..a9e6234530 100644 --- a/packages/core/src/base/style/BaseStyle.js +++ b/packages/core/src/base/style/BaseStyle.js @@ -127,19 +127,18 @@ const theme = ({ dt }) => ` const css = ({ dt }) => ` .p-hidden-accessible { - border: 0; - clip: rect(0 0 0 0); height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; + opacity: 0; + pointer-events: none; position: absolute; + white-space: nowrap; width: 1px; } .p-hidden-accessible input, .p-hidden-accessible select { - transform: scale(0); + height: 1px; + width: 1px; } .p-overflow-hidden {