Skip to content

Commit

Permalink
Merge pull request #1076 from mjmlio/fix-1072
Browse files Browse the repository at this point in the history
fix #1072 Navbar - put padding attr in style
  • Loading branch information
iRyusa authored Mar 23, 2018
2 parents 75b4633 + 5faa22a commit aa11a35
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/mjml-navbar/src/NavbarLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,13 @@ export default class MjNavbarLink extends BodyComponent {
'padding-right': this.getAttribute('padding-right'),
'padding-bottom': this.getAttribute('padding-bottom'),
},
td: {
padding: this.getAttribute('padding'),
'padding-top': this.getAttribute('padding-top'),
'padding-left': this.getAttribute('padding-left'),
'padding-right': this.getAttribute('padding-right'),
'padding-bottom': this.getAttribute('padding-bottom'),
}
}
}

Expand Down Expand Up @@ -87,11 +94,7 @@ export default class MjNavbarLink extends BodyComponent {
${conditionalTag(`
<td
${this.htmlAttributes({
padding: this.getAttribute('padding'),
'padding-top': this.getAttribute('padding-top'),
'padding-left': this.getAttribute('padding-left'),
'padding-right': this.getAttribute('padding-right'),
'padding-bottom': this.getAttribute('padding-bottom'),
style: 'td',
class: this.getAttribute('css-class')
? this.getAttribute('css-class')
.split(' ')
Expand Down

0 comments on commit aa11a35

Please sign in to comment.