From ef4cbd915dd8eb9a11fa3a47c2b75189c00f6112 Mon Sep 17 00:00:00 2001 From: Lea Verou Date: Tue, 17 Dec 2024 04:31:46 -0500 Subject: [PATCH] Tidy up --- src/components/tag/tag.css | 9 +++++---- src/components/tag/tag.ts | 7 ------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/src/components/tag/tag.css b/src/components/tag/tag.css index 68dc6af1f..a39e9ed0a 100644 --- a/src/components/tag/tag.css +++ b/src/components/tag/tag.css @@ -1,4 +1,9 @@ :host { + --size-s: var(--wa-font-size-xs); + --size-m: var(--wa-font-size-s); + --size-l: var(--wa-font-size-m); + --form-control-height: calc(var(--space-smaller) * 2 + 1em * var(--wa-form-control-value-line-height)); + display: inline-flex; border-radius: var(--wa-border-radius-s); align-items: center; @@ -11,10 +16,6 @@ white-space: nowrap; user-select: none; -webkit-user-select: none; - --size-s: var(--wa-font-size-xs); - --size-m: var(--wa-font-size-s); - --size-l: var(--wa-font-size-m); - --form-control-height: calc(var(--space-smaller) * 2 + 1em * var(--wa-form-control-value-line-height)); height: calc(var(--form-control-height) * 0.8); line-height: calc(var(--form-control-height) - var(--wa-form-control-border-width) * 2); padding: 0 var(--space-smaller); diff --git a/src/components/tag/tag.ts b/src/components/tag/tag.ts index 4555321a7..338df48bb 100644 --- a/src/components/tag/tag.ts +++ b/src/components/tag/tag.ts @@ -24,13 +24,6 @@ import styles from './tag.css'; * @csspart content - The tag's content. * @csspart remove-button - The tag's remove button, an ``. * @csspart remove-button__base - The remove button's exported `base` part. - * - * @cssproperty --background-color - The tag's background color. - * @cssproperty --border-color - The color of the tag's border. - * @cssproperty --border-radius - The radius of the tag's corners. - * @cssproperty --border-style - The style of the tag's border. - * @cssproperty --border-width - The width of the tag's border. - * @cssproperty --content-color - The color of the tag's content. */ @customElement('wa-tag') export default class WaTag extends WebAwesomeElement {