Accessibility: use buttons

Part of #960.
This commit is contained in:
Simon Pieters 2022-04-29 00:00:16 +02:00
parent 13bd50edad
commit 5d40cb8e79
2 changed files with 27 additions and 2 deletions

View file

@ -62,6 +62,31 @@ div.modalTerminal p {
text-align: center;
}
.visuallyHidden {
clip: rect(0 0 0 0);
clip-path: inset(50%);
height: 1px;
overflow: hidden;
position: absolute;
white-space: nowrap;
width: 1px;
}
.noStyle {
padding: 0;
border: none;
background: transparent;
color: inherit;
font: inherit;
letter-spacing: inherit;
word-spacing: inherit;
line-height: inherit;
text-transform: inherit;
text-indent: inherit;
text-shadow: inherit;
appearance: none;
}
/* Box Model */
html,
body,
@ -1295,4 +1320,4 @@ div.gitDemonstrationView {
bottom: 0px;
left: 21px;
opacity: 0.4;
}
}

View file

@ -304,7 +304,7 @@
<script type="text/html" id="left-right-template">
<% if (!showLeft && lastNav ) { %>
<div class="box right">
<i class="icon-ok exit"></i>
<button class="noStyle"><i aria-hidden="true" class="icon-ok exit"></i><span class="visuallyHidden">OK</span></button>
</div>
<% } else { %>
<% if (showLeft) { %>