summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/wasm/qwasmcssstyle.cpp
diff options
context:
space:
mode:
authorMorten Sørvig <[email protected]>2024-07-09 14:07:31 +0200
committerMorten Johan Sørvig <[email protected]>2024-07-11 15:14:40 +0000
commite6c77a0b7eba75e8837dc7bcd98dbc1ba95318f3 (patch)
tree7b5456ca2b0948e036f5e620c848f0bf711f1306 /src/plugins/platforms/wasm/qwasmcssstyle.cpp
parentc0914c11a88a31d4b5a7d533ab4a3eb4afb5725d (diff)
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. Pick-to: 6.8 Change-Id: Iff268cd2d8f52eead9be88e8cb460b0b445781a9 Reviewed-by: Lorn Potter <[email protected]>
Diffstat (limited to 'src/plugins/platforms/wasm/qwasmcssstyle.cpp')
-rw-r--r--src/plugins/platforms/wasm/qwasmcssstyle.cpp4
1 files 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;