diff --git a/.changeset/few-emus-walk.md b/.changeset/few-emus-walk.md new file mode 100644 index 0000000000..aea6048dd0 --- /dev/null +++ b/.changeset/few-emus-walk.md @@ -0,0 +1,5 @@ +--- +"@hashicorp/design-system-components": patch +--- + +`SideNav::List::Title`, `SideNav::List::BackLink`, `SideNav::List::Link`: fixed issue with long text strings without spaces not wrapping diff --git a/packages/components/app/styles/components/side-nav/content.scss b/packages/components/app/styles/components/side-nav/content.scss index e49e3a63bc..640f5cc329 100644 --- a/packages/components/app/styles/components/side-nav/content.scss +++ b/packages/components/app/styles/components/side-nav/content.scss @@ -40,12 +40,11 @@ // (LIST) TITLE .hds-side-nav__list-title { - display: flex; - align-items: center; min-height: var(--token-side-nav-body-list-item-height); margin-top: var(--token-side-nav-body-list-margin-vertical); padding: 9px var(--token-side-nav-body-list-item-padding-horizontal); // 8px = (min-height - body-100-line-height) / 2 color: var(--token-side-nav-color-foreground-faint); + overflow-wrap: break-word; // Remove margin from title at top of all list-items & lists .hds-side-nav__list-wrapper:first-child .hds-side-nav__list-item:first-child > & { @@ -53,7 +52,6 @@ } } - // LIST (root elements) .hds-side-nav__list-wrapper, //