Skip to content

Commit

Permalink
Remove role from disabled options
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoferrolho committed May 30, 2024
1 parent 57c924e commit e9efb3d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@reedsy/vuejs-datepicker",
"version": "1.6.2-reedsy-2.1.5",
"version": "1.6.2-reedsy-2.1.6",
"description": "A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations",
"keywords": [
"vue",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DaysGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
:aria-selected="day.isSelected"
class="cell day"
:class="dayClasses(day)"
role="button"
:role="day.isDisabled ? null : 'button'"
:tabindex="isFocused(day) ? 0 : -1"
@mouseover="mouseOver(day)"
@focus="mouseOver(day)"
Expand Down
2 changes: 1 addition & 1 deletion src/components/PickerMonth.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
:aria-selected="month.isSelected"
:class="{'selected': month.isSelected, 'disabled': month.isDisabled}"
class="cell month"
role="button"
:role="month.isDisabled ? null : 'button'"
:tabindex="month.isFocused ? 0 : -1"
type="button"
@keydown.right.prevent="focusNextMonth"
Expand Down
2 changes: 1 addition & 1 deletion src/components/PickerYear.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
:aria-selected="year.isSelected"
class="cell year"
:class="{ 'selected': year.isSelected, 'disabled': year.isDisabled }"
role="button"
:role="year.isDisabled ? null : 'button'"
:tabindex="year.isFocused ? 0 : -1"
type="button"
@click.stop="selectYear(year)"
Expand Down

0 comments on commit e9efb3d

Please sign in to comment.