Skip to content

Commit

Permalink
Add aria-disabled attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoferrolho committed May 30, 2024
1 parent b8ed736 commit a2aae41
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/components/DateInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
:placeholder="placeholder"
:clear-button="clearButton"
:disabled="disabled || null"
:aria-disabled="disabled || null"
:required="required"
:readonly="!typeable"
autocomplete="off"
Expand Down
5 changes: 3 additions & 2 deletions src/components/Datepicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
:calendar-button="calendarButton"
:calendar-button-icon="calendarButtonIcon"
:calendar-button-icon-content="calendarButtonIconContent"
:disabled="disabled"
:disabled="disabled || null"
:aria-disabled="disabled || null"
:required="required"
:bootstrap-styling="bootstrapStyling"
:use-utc="useUtc"
Expand Down Expand Up @@ -236,7 +237,7 @@ export default {
emits: [
'changedMonth',
'changedYear',
'cleared',
'cleared',
'closed',
'highlight-date',
'selected',
Expand Down
2 changes: 2 additions & 0 deletions src/components/PickerDay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
class="prev"
:aria-label="isRtl ? 'Next Month' : 'Previous Month'"
:disabled="isLeftNavDisabled || null"
:aria-disabled="isLeftNavDisabled || null"
@click="isRtl ? nextMonth() : previousMonth()"
@keydown.space.enter.prevent="isRtl ? nextMonth() : previousMonth()"
@keydown="$emit('keydown', $event)"
Expand Down Expand Up @@ -56,6 +57,7 @@
class="next"
:aria-label="isRtl ? 'Previous Month' : 'Next Month'"
:disabled="isRightNavDisabled || null"
:aria-disabled="isRightNavDisabled || null"
@click="isRtl ? previousMonth() : nextMonth()"
@keydown.space.enter.prevent="isRtl ? previousMonth() : nextMonth()"
@keydown="$emit('keydown', $event)"
Expand Down
2 changes: 2 additions & 0 deletions src/components/PickerMonth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
type="button"
class="prev"
:disabled="isLeftNavDisabled || null"
:aria-disabled="isLeftNavDisabled || null"
:aria-label="isRtl ? 'Next Year' : 'Previous Year'"
@click="isRtl ? nextYear() : previousYear()"
@keydown.space.enter.prevent="isRtl ? nextYear() : previousYear()"
Expand All @@ -44,6 +45,7 @@
class="next"
:aria-label="isRtl ? 'Previous Year' : 'Next Year'"
:disabled="isRightNavDisabled || null"
:aria-disabled="isRightNavDisabled || null"
@click="isRtl ? previousYear() : nextYear()"
@keydown.space.enter.prevent="isRtl ? previousYear() : nextYear()"
@keydown="$emit('keydown', $event)"
Expand Down
2 changes: 2 additions & 0 deletions src/components/PickerYear.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
type="button"
class="prev"
:disabled="isLeftNavDisabled || null"
:aria-disabled="isLeftNavDisabled || null"
:aria-label="isRtl ? 'Next Decade' : 'Previous Decade'"
@click="isRtl ? nextDecade() : previousDecade()"
@keydown.space.enter.prevent="isRtl ? nextDecade() : previousDecade()"
Expand All @@ -39,6 +40,7 @@
class="next"
:aria-label="isRtl ? 'Previous Decade' : 'Next Decade'"
:disabled="isRightNavDisabled || null"
:aria-disabled="isRightNavDisabled || null"
@click="isRtl ? previousDecade() : nextDecade()"
@keydown="$emit('keydown', $event)"
>
Expand Down

0 comments on commit a2aae41

Please sign in to comment.