@3mo/button
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -25,2 +25,4 @@ import { Component } from '@a11d/lit'; | ||
* @cssprop --mo-button-disabled-color | ||
* | ||
* @csspart button - The composed native button element. | ||
*/ | ||
@@ -27,0 +29,0 @@ export declare class Button extends Component { |
@@ -20,2 +20,4 @@ import { __decorate } from "tslib"; | ||
* @cssprop --mo-button-disabled-color | ||
* | ||
* @csspart button - The composed native button element. | ||
*/ | ||
@@ -73,3 +75,3 @@ let Button = class Button extends Component { | ||
return html ` | ||
<mwc-button expandContent | ||
<mwc-button exportparts='button' expandContent | ||
?raised=${this.type === "raised" /* ButtonType.Raised */} | ||
@@ -134,2 +136,8 @@ ?outlined=${this.type === "outlined" /* ButtonType.Outlined */} | ||
export { Button }; | ||
MwcButton.addInitializer(async (element) => { | ||
var _a; | ||
const button = element; | ||
await button.updateComplete; | ||
(_a = button.renderRoot.querySelector('button')) === null || _a === void 0 ? void 0 : _a.setAttribute('part', 'button'); | ||
}); | ||
MwcButton.elementStyles.push(css ` | ||
@@ -136,0 +144,0 @@ :host { |
@@ -25,2 +25,4 @@ import { Component } from '@a11d/lit'; | ||
* @cssprop --mo-button-disabled-color | ||
* | ||
* @csspart button - The composed native button element. | ||
*/ | ||
@@ -27,0 +29,0 @@ export declare class Button extends Component { |
{ | ||
"name": "@3mo/button", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "A button web-component based on Material Web Components (MWC).", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
156134
431