UNPKG

svgedit

Version:

Powerful SVG-Editor for your browser

32 lines (29 loc) 720 B
import { template } from 'elix/src/base/internal.js' import { fragmentFrom } from 'elix/src/core/htmlLiterals.js' import PlainButton from 'elix/src/plain/PlainButton.js' /** * @class SePlainBorderButton * Button with a border in the Plain reference design system * */ class SePlainBorderButton extends PlainButton { /** * @function get * @returns {PlainObject} */ get [template] () { const result = super[template] result.content.append( fragmentFrom.html` <style> [part~="button"] { background: var(--main-bg-color); border: 1px solid #ccc; } </style> ` ) return result } } export default SePlainBorderButton