include icon.pug mixin action-button - let classes = { 'o-action-button': true, 'u-d-block': attributes.block, 'o-action-button--quiet': attributes.quiet, 'o-action-button--pill': attributes.pill, 'o-action-button--icon': !!attributes.icon && !block, 'is-selected': attributes.selected } if (attributes.theme) { classes['o-action-button--' + attributes.theme] = true } if (attributes.size) { classes['o-action-button--' + attributes.size] = true } if (attributes.class) { classes[attributes.class] = true; } let href = attributes.disabled ? null : '#'; a(class=classes href=href) if attributes.icon +icon(attributes.icon) = ' ' if block span.o-action-button__label block if attributes.postIcon = ' ' +icon(attributes.postIcon)