Skip to content

Commit

Permalink
Accessibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cristijora committed Feb 12, 2019
1 parent 88f7016 commit ec77917
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@

p{
margin: 0;
font-weight: $font-weight-normal;
font-weight: $font-weight-bold;
color: rgba($white,0.8);
line-height: 30px;
position: relative;
display: block;
Expand Down
3 changes: 2 additions & 1 deletion src/components/BaseDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class="dropdown-toggle btn-rotate"
:class="titleClasses"
:aria-expanded="isOpen"
:aria-label="title"
:aria-label="title || ariaLabel"
data-toggle="dropdown">
<slot name="title" :is-open="isOpen">
<i :class="icon"></i>
Expand Down Expand Up @@ -58,6 +58,7 @@
type: Boolean,
description: "Whether menu should appear on the right"
},
ariaLabel: String
},
data() {
return {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@
<p class="card-category d-inline">{{$t('dashboard.today')}}</p>
<base-dropdown menu-on-right=""
tag="div"
aria-label="Settings menu"
title-classes="btn btn-link btn-icon"
aria-label="Settings menu"
:class="{'float-left': isRTL}">
<i slot="title" class="tim-icons icon-settings-gear-63"></i>
<a class="dropdown-item" href="#pablo">{{$t('dashboard.dropdown.action')}}</a>
Expand Down

0 comments on commit ec77917

Please sign in to comment.