2021-09-16 16:57:49 -07:00

35 lines
684 B
TypeScript

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit-element';
import {Button} from './button';
import {styles as sharedStyles} from './shared-styles.css';
import {styles as textStyles} from './text-styles.css';
declare global {
interface HTMLElementTagNameMap {
'md-text-button': TextButton;
}
}
/**
* @soyCompatible
* @final
*/
@customElement('md-text-button')
export class TextButton extends Button {
static styles = [sharedStyles, textStyles];
/** @soyCompatible */
protected getRenderClasses() {
return {
...super.getRenderClasses(),
'mdc-button--text': true,
};
}
}