Skip to content
This repository has been archived by the owner on Nov 30, 2020. It is now read-only.

Commit

Permalink
feat(textfield): Synchronise with mdc-web (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Apr 24, 2018
1 parent ff93da9 commit fd8ecee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/textfield/Textfield.vue
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,15 @@ export default {
if (this.$slots.leadingIcon) {
this.$slots.leadingIcon.map(n => {
n.elm.classList.add('mdc-text-field__icon')
n.elm.setAttribute('tabindex', '0')
n.elm.setAttribute('role', 'button')
})
}
if (this.$slots.trailingIcon) {
this.$slots.trailingIcon.map(n => {
n.elm.classList.add('mdc-text-field__icon')
n.elm.setAttribute('tabindex', '0')
n.elm.setAttribute('role', 'button')
})
}
},
Expand Down

0 comments on commit fd8ecee

Please sign in to comment.