mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
35 lines
684 B
TypeScript
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,
|
|
};
|
|
}
|
|
}
|