From 71f80cff34e2a49e32c0bd39c2f6b4d01691269d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Morten=20S=C3=B8rvig?= Date: Tue, 9 Jul 2024 14:07:31 +0200 Subject: [PATCH] wasm: make the "a11y enable" button cover window Adjust the button geometry to match window geometry. Screen readers may visualize the geometry, and this makes it clearer that the button is relevant. Setting the clip looks to be sufficient to keep the button visually hidden, even if the canvas (which would normally be ordered in front) is missing. Change-Id: Iff268cd2d8f52eead9be88e8cb460b0b445781a9 Reviewed-by: Lorn Potter (cherry picked from commit e6c77a0b7eba75e8837dc7bcd98dbc1ba95318f3) Reviewed-by: Qt Cherry-pick Bot --- src/plugins/platforms/wasm/qwasmcssstyle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/platforms/wasm/qwasmcssstyle.cpp b/src/plugins/platforms/wasm/qwasmcssstyle.cpp index e0e1a99f488..af9250e9261 100644 --- a/src/plugins/platforms/wasm/qwasmcssstyle.cpp +++ b/src/plugins/platforms/wasm/qwasmcssstyle.cpp @@ -224,8 +224,8 @@ const char *Style = R"css( visibility: visible; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); - height: 1px; - width: 1px; + height: 100%; + width: 100%; margin: -1px; overflow: hidden; padding: 0;