Skip to content
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

Wrap long Auth Display names in menus #26181

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

Monkeychip
Copy link
Contributor

@Monkeychip Monkeychip commented Mar 27, 2024

Came across this while investigating another workflow. Will backport to 1.16.1 only. While we will fix this eventually in the HDS adoption work, I wanted to tackle this now so we don't push another release waiting for that work to complete with this styling issue.

I aired on the conservative side and used a new helper instead of applying the styling to the menu-label class. There is some cleanup that needs to be done for this class, and I didn't want to confuse it. Largely there are three menu-label class definitions but it's only currently being used in the user-menu component. My suspicion is that eventually we can remove this class definition as we adopt HDS.

Before:
image

After:
image

@Monkeychip Monkeychip added this to the 1.17.0-rc milestone Mar 27, 2024
@github-actions github-actions bot added the hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed label Mar 27, 2024
Copy link

Build Results:
All builds succeeded! ✅

Copy link

github-actions bot commented Mar 27, 2024

CI Results:
All Go tests succeeded! ✅

Copy link
Contributor

@andaley andaley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one nit, but otherwise i think this is great!

@@ -77,6 +77,10 @@
white-space: pre-wrap;
}

.overflow-wrap {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did the is-word-break class not work for this situation? asking only because i was going to suggest renaming this class to .break-word to make it more obvious which CSS rule was being applied, but i see that basically already exists. 😛

not a huge deal though since we could always add an .overflow-wrap-anywhere class helper down the line.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question, and it didn't work. The white-space: pre-wrap on that helper borks things. Thanks for checking though!

@ldilalla-HC ldilalla-HC modified the milestones: 1.16.1, 1.16.2 Apr 4, 2024
@Monkeychip Monkeychip merged commit 0445e62 into main Apr 10, 2024
25 of 26 checks passed
@Monkeychip Monkeychip deleted the ui/VAULT-25482/menu-wrap branch April 10, 2024 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hashicorp-contributed-pr If the PR is HashiCorp (i.e. not-community) contributed pr/no-changelog ui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants