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

Commit

Permalink
fix(fab): Disable adding CSS class for SVGs
Browse files Browse the repository at this point in the history
  • Loading branch information
matsp committed Jun 20, 2018
1 parent 5eb254d commit f8c2118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/fab/Fab.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ export default {
updateSlot () {
if (this.$slots.default) {
this.$slots.default.map(n => {
n.elm.classList.add('mdc-fab__icon')
if (n.elm.tagName !== 'SVG') {
n.elm.classList.add('mdc-fab__icon')
}
})
}
}
Expand Down

0 comments on commit f8c2118

Please sign in to comment.