mirror of
https://github.com/material-components/material-web.git
synced 2026-03-09 00:09:23 +08:00
25 lines
621 B
TypeScript
25 lines
621 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2021 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {html, TemplateResult} from 'lit';
|
|
import {ClassInfo} from 'lit/directives/class-map.js';
|
|
|
|
import {LinkButton} from './link-button.js';
|
|
|
|
// tslint:disable-next-line:enforce-comments-on-exported-symbols
|
|
export class OutlinedLinkButton extends LinkButton {
|
|
protected override getRenderClasses(): ClassInfo {
|
|
return {
|
|
...super.getRenderClasses(),
|
|
'md3-button--outlined': true,
|
|
};
|
|
}
|
|
|
|
protected override renderOutline(): TemplateResult {
|
|
return html`<span class="md3-button__outline"></span>`;
|
|
}
|
|
}
|