From e7ab72ffbd6cc559efb928f3f7e55babb50e41df Mon Sep 17 00:00:00 2001 From: Claas Date: Sat, 19 Aug 2023 01:12:16 +0200 Subject: [PATCH] Use nesting to simplify state styles --- .../elevated-button/src/DimElevatedButton.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/components/elevated-button/src/DimElevatedButton.ts b/components/elevated-button/src/DimElevatedButton.ts index fe38e06..e6fea9b 100644 --- a/components/elevated-button/src/DimElevatedButton.ts +++ b/components/elevated-button/src/DimElevatedButton.ts @@ -54,7 +54,7 @@ export class DimElevatedButton extends LitElement { } } - button { + button:enabled { border: none; background-color: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-1-shadow); @@ -76,13 +76,13 @@ export class DimElevatedButton extends LitElement { display: flex; align-items: center; gap: 8px; - } - [name='icon']::slotted(*) { - display: inline-block; - height: 18px; - width: 18px; - margin-inline-start: -8px; + & [name='icon']::slotted(*) { + display: inline-block; + height: 18px; + width: 18px; + margin-inline-start: -8px; + } } `; } -- knotmirror 0.0.1