diff --git a/packages/heml-elements/src/Block.js b/packages/heml-elements/src/Block.js index 848a5d1..a8668a8 100644 --- a/packages/heml-elements/src/Block.js +++ b/packages/heml-elements/src/Block.js @@ -19,15 +19,11 @@ export default createElement('block', { containsText: true, rules: { - '.block': [ { '@pseudo': 'root' }, { display: trueHide('block') }, margin, width ], - - '.block__table__ie': [ 'width', 'max-width', { [margin]: ieAlignFallback } ], - - '.block__table': [ { '@pseudo': 'table' }, table ], - - '.block__row': [ { '@pseudo': 'row' } ], - - '.block__cell': [ { '@pseudo': 'cell' }, height, background, box, padding, border, borderRadius, 'vertical-align' ] + root: [ { display: trueHide('block') }, margin, width ], + table__ie: [ 'width', 'max-width', { [margin]: ieAlignFallback } ], + table: [ table ], + row: [ ], + cell: [ height, background, box, padding, border, borderRadius, 'vertical-align' ] }, css (Style) { @@ -35,13 +31,13 @@ export default createElement('block', { }, render (attrs, contents) { - attrs.class += ' block' + const { rules, ...defaultAttrs } = attrs return ( -
- {condition('mso | IE', `