Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added aria-labels to the buttons on the documents page #286

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions docs-web/src/main/webapp/src/partial/docs/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<a href="#/document/add" class="btn btn-primary">
<span class="fas fa-plus"></span> {{ 'document.add_document' | translate }}
</a>
<button type="button" class="btn btn-primary" uib-dropdown-toggle>
<button type="button" class="btn btn-primary" aria-label="dropdown toggle" uib-dropdown-toggle>
<span class="caret"></span>
</button>
<ul uib-dropdown-menu>
Expand Down Expand Up @@ -197,13 +197,15 @@
<button class="btn btn-default" ng-click="navigationToggle()"
ng-class="{ active: navigationEnabled }"
uib-tooltip="{{ 'document.toggle_navigation' | translate }}"
tooltip-append-to-body="true">
tooltip-append-to-body="true"
aria-label="toggle folder navigation">
<span class="far" ng-class="{ 'fa-folder-open': navigationEnabled, 'fa-folder': !navigationEnabled }"></span>
</button>
<!-- Add a tag here -->
<button class="btn btn-primary btn-add-tag"
uib-tooltip="{{ 'tag.new_tag' | translate }}"
ng-click="addTagHere()">
ng-click="addTagHere()"
aria-label="add tag">
<span>
<i class="fas fa-tag"></i>
<i class="fas fa-plus"></i>
Expand Down