Skip to content

Commit

Permalink
fix(VRadioGroup): use correct element tags for a11y
Browse files Browse the repository at this point in the history
fixes #9851
  • Loading branch information
johnleider committed Jan 16, 2020
1 parent f6ef33c commit 75f6197
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/vuetify/src/components/VRadioGroup/VRadioGroup.sass
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@

.v-input--radio-group
&__input
border: none
display: flex
width: 100%

> .v-label
align-items: center
display: inline-flex
height: auto
top: 0
> .v-label
align-items: center
display: inline-flex
height: auto
top: 0

&--column .v-input--radio-group__input > .v-label
padding-bottom: $radio-group-padding
Expand Down
2 changes: 1 addition & 1 deletion packages/vuetify/src/components/VRadioGroup/VRadioGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export default baseMixins.extend({
label.data!.attrs!.id = this.computedId
// WAI considers this an orphaned label
delete label.data!.attrs!.for
label.tag = 'div'
label.tag = 'legend'

return label
},
Expand Down

0 comments on commit 75f6197

Please sign in to comment.