Skip to content

Commit

Permalink
Merge pull request #367 from PrestaShopCorp/362-feature-accessibility…
Browse files Browse the repository at this point in the history
…-no-possibility-to-uncheckcheckexpandable-checkbox-radio-expandable-components

[Table] [Accessibility] fix #362 - keyboard handling :  expand/collapse line with space
  • Loading branch information
mattgoud authored Sep 18, 2024
2 parents 7016660 + 84c05c5 commit 2d85aa1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/table/src/table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -237,12 +237,14 @@
</puik-checkbox>
<PuikIcon
v-if="expandable"
tabindex="0"
:class="[
{ 'puik-icon__expand': expandedRows.includes(rowIndex) },
]"
icon="keyboard_arrow_down"
font-size="24"
@click="expandRow(rowIndex)"
@keydown.space.prevent="expandRow(rowIndex)"
/>
</div>
</td>
Expand Down

0 comments on commit 2d85aa1

Please sign in to comment.