material-web/button/filled-tonal-button.ts
Elizabeth Mitchell cc26ef6c02 fix(button)!: rename <md-tonal-button> to <md-filled-tonal-button>
BREAKING CHANGE: Rename "md-tonal-button" elements, imports, and tokens to "md-filled-tonal-button"

PiperOrigin-RevId: 552600206
2023-07-31 14:57:34 -07:00

45 lines
1.3 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* @license
* Copyright 2021 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
import {customElement} from 'lit/decorators.js';
import {FilledTonalButton} from './internal/filled-tonal-button.js';
import {styles as tonalStyles} from './internal/filled-tonal-styles.css.js';
import {styles as sharedElevationStyles} from './internal/shared-elevation-styles.css.js';
import {styles as sharedStyles} from './internal/shared-styles.css.js';
declare global {
interface HTMLElementTagNameMap {
'md-filled-tonal-button': MdFilledTonalButton;
}
}
/**
* @summary Buttons help people take action, such as sending an email, sharing a
* document, or liking a comment.
*
* @description
* __Emphasis:__ Medium emphasis For important actions that dont distract
* from other onscreen elements.
*
* __Rationale:__ Filled tonal buttons have a lighter background color and
* darker label color, making them less visually prominent than a regular,
* filled button. Theyre still used for final or unblocking actions in a flow,
* but do so with less emphasis.
*
* __Example usages:__
* - Save
* - Confirm
* - Done
*
* @final
* @suppress {visibility}
*/
@customElement('md-filled-tonal-button')
export class MdFilledTonalButton extends FilledTonalButton {
static override styles = [sharedStyles, sharedElevationStyles, tonalStyles];
}