Skip to content

Commit

Permalink
fix(UsaChecklistItem): remove ability to focus checklist items
Browse files Browse the repository at this point in the history
This aligns with the USWDS 3.8.1 change: uswds/uswds#5835
  • Loading branch information
patrickcate committed Jun 25, 2024
1 parent 19e4f10 commit 2437a41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
4 changes: 1 addition & 3 deletions src/components/UsaChecklist/UsaChecklist.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ describe('UsaChecklist', () => {
},
})

cy.get('.usa-checklist li')
.should('have.length', 3)
.and('have.attr', 'tabindex', '0')
cy.get('.usa-checklist li').should('have.length', 3)

cy.get('li:nth-of-type(1)')
.should('have.attr', 'aria-label', 'Test item 1: invalid')
Expand Down
6 changes: 1 addition & 5 deletions src/components/UsaChecklistItem/UsaChecklistItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ const classes = computed(() => [
</script>

<template>
<li
class="usa-checklist__item"
:aria-label="ariaLabel"
:class="classes"
tabindex="0"
<li class="usa-checklist__item" :aria-label="ariaLabel" :class="classes"
><slot></slot
></li>
</template>

0 comments on commit 2437a41

Please sign in to comment.