From e21943f4fbe1fe50e4175cc90c04fe16003fa9ea Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Fri, 11 Aug 2023 10:30:40 -0400 Subject: [PATCH] fix typos/whitespace --- cspell.json | 2 ++ docs/assets/styles/docs.css | 8 +++++++- src/internal/shoelace-element.test.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/cspell.json b/cspell.json index 087ede4e..1ae87336 100644 --- a/cspell.json +++ b/cspell.json @@ -51,6 +51,7 @@ "erroneou", "errormessage", "esbuild", + "exportmaps", "exportparts", "fieldsets", "formaction", @@ -152,6 +153,7 @@ "tinycolor", "transitionend", "treeitem", + "treeshaking", "Triaging", "turbolinks", "typeof", diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index ac1ed3a6..7b521981 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -1066,23 +1066,29 @@ html.sidebar-open #menu-toggle { /* Hide when not defined to prevent extra wide icon toolbar while loading */ display: none; } + #theme-selector sl-menu { - /* Set an initial size to prevent width being initally too small when first opening on small screen width */ + /* Set an initial size to prevent width being too small when first opening on small screen width */ width: 140px; } + #theme-selector sl-button { transition: 250ms scale ease; } + #theme-selector sl-button::part(base) { color: var(--sl-color-neutral-0); } + #theme-selector sl-button::part(label) { display: flex; padding: 0.5rem; } + #theme-selector sl-icon { font-size: 1.25rem; } + .sl-theme-dark #theme-selector sl-button::part(base) { color: var(--sl-color-neutral-1000); } diff --git a/src/internal/shoelace-element.test.ts b/src/internal/shoelace-element.test.ts index 3199015e..21fbf6cd 100644 --- a/src/internal/shoelace-element.test.ts +++ b/src/internal/shoelace-element.test.ts @@ -33,7 +33,7 @@ function stubCustomElements() { return; } - // Assign it a random string so it doesnt pollute globally. + // Assign it a random string so it doesn't pollute globally. const randomTagName = str + '-' + counter.toString(); counter++; stub.wrappedMethod.apply(window.customElements, [randomTagName, ctor]);