-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SideNav::List::Title
: wrap text of long strings (HDS-3047)
#1899
SideNav::List::Title
: wrap text of long strings (HDS-3047)
#1899
Conversation
…s will wrap, update css for backlink so long strings will wrap
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice ✨
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KristinLBradley left a couple of suggestions
packages/components/addon/components/hds/side-nav/list/title.hbs
Outdated
Show resolved
Hide resolved
packages/components/app/styles/components/side-nav/content.scss
Outdated
Show resolved
Hide resolved
Made refinements from feedback. |
…essary wrapping of adjacent text in layout
@@ -616,12 +624,16 @@ | |||
</SG.Item> | |||
<SG.Item @label="Icon + text + yielded content"> | |||
<Hds::SideNav::List::Link @icon="boundary" @text="Boundary"> | |||
<Shw::Placeholder @height="20px" @text="yielded content" /> | |||
{{! template-lint-disable no-inline-styles }} | |||
<Shw::Placeholder @height="20px" @width="auto" style="flex-grow: 1;" @text="yielded content" /> |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
packages/components/tests/dummy/app/templates/components/side-nav.hbs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a suggestion for the codemod. Apart from that, all good 👍
Co-authored-by: Cristiano Rastelli <cristiano.rastelli@hashicorp.com>
📌 Summary
If merged, this PR restructures the SidNav ListTitle DOM and updates styles so long unbroken text strings will wrap. It also updates css for
SideNav::List::BackLink
so long text strings will wrap.📸 Screenshots
🔗 External links
Jira ticket: HDS-3047
👀 Component checklist
A11y tests have been run locally (yarn test:a11y --filter="COMPONENT-NAME"
)If documenting a new component, an acceptance test that includes thea11yAudit
has been added💬 Please consider using conventional comments when reviewing this PR.