fix(PublicPage): improve accesibility of schedule button

This commit is contained in:
Matthieu Bessat 2020-09-05 19:59:31 +02:00
parent 88d6cba0b7
commit ea1906618d
2 changed files with 15 additions and 2 deletions

View file

@ -511,6 +511,19 @@ section {
display: flex;
justify-content: flex-end;
align-items: center;
/* Revert button browser style */
font: inherit;
border: 0;
background: 0;
padding: initial;
cursor: pointer;
}
.schedule-category-collapse-icon-container:focus {
border: 0;
outline: 1px dashed black;
cursor: pointer;
}
.schedule-category-header .subtitle, .schedule-category-header .separator {

View file

@ -162,12 +162,12 @@
<span class="separator">-</span><span class="subtitle"> {{ item.description|e }}</span>
{% endif %}
</div>
<div class="schedule-category-collapse-icon-container">
<button class="schedule-category-collapse-icon-container">
<svg class="schedule-category-collapse-icon"
aria-hidden="true" focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor" d="M8 256C8 119 119 8 256 8s248 111 248 248-111 248-248 248S8 393 8 256zm231-113.9L103.5 277.6c-9.4 9.4-9.4 24.6 0 33.9l17 17c9.4 9.4 24.6 9.4 33.9 0L256 226.9l101.6 101.6c9.4 9.4 24.6 9.4 33.9 0l17-17c9.4-9.4 9.4-24.6 0-33.9L273 142.1c-9.4-9.4-24.6-9.4-34 0z"></path>
</svg>
</div>
</button>
</div>
<div class="schedule-category-table">
<div class="schedule-category-days-container">