From 234ff2619d303b9f9fdc6b6e42bf679700ab09b2 Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Tue, 14 Mar 2023 11:16:39 -0400 Subject: [PATCH] fixes #1243 --- docs/resources/changelog.md | 1 + src/components/tree-item/tree-item.styles.ts | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/resources/changelog.md b/docs/resources/changelog.md index 1e6c957b..1d3b706b 100644 --- a/docs/resources/changelog.md +++ b/docs/resources/changelog.md @@ -9,6 +9,7 @@ New versions of Shoelace are released as-needed and generally occur when a criti ## Next - Added the `discover()` function to the experimental autoloader's exports [#1236](https://github.com/shoelace-style/shoelace/pull/1236) +- Fixed a bug in `` that prevented long labels from wrapping [#1243](https://github.com/shoelace-style/shoelace/issues/1243) - Improved the behavior of `` when used inside a flex container [#1235](https://github.com/shoelace-style/shoelace/pull/1235) ## 2.3.0 diff --git a/src/components/tree-item/tree-item.styles.ts b/src/components/tree-item/tree-item.styles.ts index b7018c16..1ed484de 100644 --- a/src/components/tree-item/tree-item.styles.ts +++ b/src/components/tree-item/tree-item.styles.ts @@ -26,7 +26,6 @@ export default css` color: var(--sl-color-neutral-700); cursor: pointer; user-select: none; - white-space: nowrap; } .tree-item__checkbox { @@ -39,7 +38,7 @@ export default css` font-family: var(--sl-font-sans); font-size: var(--sl-font-size-medium); font-weight: var(--sl-font-weight-normal); - line-height: var(--sl-line-height-normal); + line-height: var(--sl-line-height-dense); letter-spacing: var(--sl-letter-spacing-normal); }