1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 15:18:08 +02:00

[Editor] Improve the accessibility of the highlight editor (bug 1881743)

This commit is contained in:
Calixte Denizet 2024-03-11 14:05:28 +01:00
parent b14f696071
commit f676c2c0c8
6 changed files with 29 additions and 0 deletions

View file

@ -48,6 +48,19 @@
pointer;
}
/* The following class is used to hide an element but keep it available to
* for screen readers. */
.visuallyHidden {
position: absolute;
border: 0;
margin: 0;
padding: 0;
width: 0;
height: 0;
overflow: hidden;
white-space: nowrap;
}
.textLayer.highlighting {
cursor: var(--editorFreeHighlight-editing-cursor);