@scania/tegel
Version:
Tegel Design System
24 lines (20 loc) • 1.48 kB
JavaScript
import { r as registerInstance, h, H as Host, g as getElement } from './index-51d04e39.js';
import { i as inheritAriaAttributes } from './inheritAriaAttributes-04f2f252.js';
import './inheritAttributes-d21e267b.js';
const headerLauncherButtonCss = ":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}";
const TdsHeaderLauncherButtonStyle0 = headerLauncherButtonCss;
const TdsHeaderLauncherButton = class {
constructor(hostRef) {
registerInstance(this, hostRef);
this.active = false;
this.tdsAriaLabel = undefined;
}
render() {
this.ariaAttributes = Object.assign(Object.assign({}, this.ariaAttributes), inheritAriaAttributes(this.host));
const buttonProps = Object.assign({}, this.ariaAttributes);
return (h(Host, { key: '62757385fdf2aa3c51af260f2761714aea4c9727' }, h("tds-header-item", { key: '199a00653122178784999c0b5d643b9b15cd8cc5', active: this.active }, h("button", Object.assign({ key: 'd59e77834e10763d5b1c518d5bcd96e51c4dad58' }, buttonProps, { "aria-label": this.tdsAriaLabel }), h("tds-icon", { key: 'add07749af57c4110b6baeda3944e97ddf36c067', class: "icon", name: "bento", size: "20px", "svg-title": this.tdsAriaLabel })))));
}
get host() { return getElement(this); }
};
TdsHeaderLauncherButton.style = TdsHeaderLauncherButtonStyle0;
export { TdsHeaderLauncherButton as tds_header_launcher_button };