From 96cfc9767191f25be83bf9fb0607ad49dd034585 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 | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/core/src/base/style/BaseStyle.js b/packages/core/src/base/style/BaseStyle.js index 6b93daadf..95a8d421a 100644 --- a/packages/core/src/base/style/BaseStyle.js +++ b/packages/core/src/base/style/BaseStyle.js @@ -131,17 +131,15 @@ const css = ({ dt }) => ` clip: rect(0 0 0 0); height: 1px; margin: -1px; + opacity: 0; overflow: hidden; padding: 0; + pointer-events: none; position: absolute; + white-space: nowrap; width: 1px; } -.p-hidden-accessible input, -.p-hidden-accessible select { - transform: scale(0); -} - .p-overflow-hidden { overflow: hidden; padding-right: ${dt('scrollbar.width')};