From d0b71adb81e21687a5ef036565dad44bc609bcce Mon Sep 17 00:00:00 2001 From: Cory LaViska Date: Thu, 28 Mar 2024 11:01:21 -0400 Subject: [PATCH] update tooltip styles; fixes #1947 (#1948) --- docs/pages/resources/changelog.md | 4 ++++ src/components/tooltip/tooltip.styles.ts | 2 ++ 2 files changed, 6 insertions(+) diff --git a/docs/pages/resources/changelog.md b/docs/pages/resources/changelog.md index 80a72671..58fd1ed0 100644 --- a/docs/pages/resources/changelog.md +++ b/docs/pages/resources/changelog.md @@ -12,6 +12,10 @@ Components with the Experimental bad New versions of Shoelace are released as-needed and generally occur when a critical mass of changes have accumulated. At any time, you can see what's coming in the next release by visiting [next.shoelace.style](https://next.shoelace.style). +## Next + +- Fixed a bug in `` that allowed unwanted text properties to leak in [#1947] + ## 2.15.0 - Added the Slovenian translation [#1893] diff --git a/src/components/tooltip/tooltip.styles.ts b/src/components/tooltip/tooltip.styles.ts index 2fd27519..f60ba84b 100644 --- a/src/components/tooltip/tooltip.styles.ts +++ b/src/components/tooltip/tooltip.styles.ts @@ -44,6 +44,8 @@ export default css` font-size: var(--sl-tooltip-font-size); font-weight: var(--sl-tooltip-font-weight); line-height: var(--sl-tooltip-line-height); + text-align: start; + white-space: normal; color: var(--sl-tooltip-color); padding: var(--sl-tooltip-padding); pointer-events: none;