feat(styles): enhance accessibility and UI hints
Improved the UI's informative elements by introducing accessible tooltips and clearer button hierarchy in the CSS. Specifically, focused on enhancing keyboard navigation accessibility by outlining `abbr` elements when focused, and adjusted the `.card-block > .btn` selector for better specificity, ensuring button styles apply more reliably. In the HTML template, added an abbreviation (abbr) element with a tooltip to explain the resolution input field, aiding user understanding and interaction without cluttering the UI. These changes aim to make the platform more inclusive and user-friendly, particularly for users relying on keyboard navigation, and provide clearer, immediate guidance on the resolution setting process without overwhelming them with text.
This commit is contained in:
parent
89bb640112
commit
2acf8501b4
2 changed files with 30 additions and 2 deletions
|
@ -61,7 +61,31 @@ form {
|
||||||
height: 500px;
|
height: 500px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.card-block .btn {
|
.card-block > .btn {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.info-symbol {
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 1;
|
||||||
|
cursor: help;
|
||||||
|
color: #17a2b8;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-symbol:hover {
|
||||||
|
color: #1397a3;
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
border-bottom: none;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Accessibility for keyboard navigation */
|
||||||
|
abbr[title]:focus {
|
||||||
|
outline: 2px dashed #17a2b8;
|
||||||
|
outline-offset: 2px;
|
||||||
|
}
|
|
@ -50,7 +50,11 @@
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label style="display: block">Resolution</label>
|
<label style="display: block">Resolution
|
||||||
|
<abbr title="If no value is set for the resolution, the system will try to figure out the highest resolution possible and export that." tabindex="0">
|
||||||
|
<span class="info-symbol" aria-hidden="true">ⓘ</span>
|
||||||
|
</abbr>
|
||||||
|
</label>
|
||||||
<input
|
<input
|
||||||
type=""
|
type=""
|
||||||
class="form-control"
|
class="form-control"
|
||||||
|
|
Loading…
Reference in a new issue