2022-07-15 06:50:50 +03:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright 2022 Google LLC
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {html, TemplateResult} from 'lit';
|
2022-08-24 21:00:50 +03:00
|
|
|
import {ClassInfo} from 'lit/directives/class-map.js';
|
2022-07-15 06:50:50 +03:00
|
|
|
|
2022-08-24 21:00:50 +03:00
|
|
|
import {SegmentedButton} from './segmented-button.js';
|
2022-07-15 06:50:50 +03:00
|
|
|
|
|
|
|
/** @soyCompatible */
|
|
|
|
export class OutlinedSegmentedButton extends SegmentedButton {
|
|
|
|
/** @soyTemplate */
|
|
|
|
protected override getRenderClasses(): ClassInfo {
|
|
|
|
return {
|
|
|
|
...super.getRenderClasses(),
|
|
|
|
'md3-segmented-button--outlined': true,
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @soyTemplate */
|
|
|
|
protected override renderOutline(): TemplateResult {
|
|
|
|
return html`<span class="md3-segmented-button__outline"></span>`;
|
|
|
|
}
|
|
|
|
}
|