Skip to content

Commit

Permalink
Client - make calendar arrows accessible to keyboard navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
SamR1 committed Jan 17, 2024
1 parent e3f5701 commit 3821e37
Showing 1 changed file with 10 additions and 9 deletions.
@@ -1,22 +1,22 @@
<template>
<div class="calendar-header">
<div
class="calendar-arrow calendar-arrow-left"
<button
class="calendar-arrow calendar-arrow-left transparent"
@click="emit('displayPreviousMonth')"
>
<i class="fa fa-chevron-left" aria-hidden="true" />
</div>
</button>
<div class="calendar-month">
<span>
{{ format(day, 'MMM yyyy', { locale: localeOptions }) }}
</span>
</div>
<div
class="calendar-arrow calendar-arrow-right"
<button
class="calendar-arrow calendar-arrow-right transparent"
@click="emit('displayNextMonth')"
>
<i class="fa fa-chevron-right" aria-hidden="true" />
</div>
</button>
</div>
</template>

Expand All @@ -42,10 +42,9 @@
display: flex;
flex-direction: row;
.calendar-arrow,
.calendar-month {
.calendar-arrow {
flex-grow: 1;
padding: $default-padding;
padding: $default-padding - 1 px;
}
.calendar-arrow-left {
text-align: left;
Expand All @@ -56,7 +55,9 @@
cursor: pointer;
}
.calendar-month {
flex-grow: 1;
font-weight: bold;
padding: $default-padding;
text-align: center;
text-transform: uppercase;
}
Expand Down

0 comments on commit 3821e37

Please sign in to comment.