-
Notifications
You must be signed in to change notification settings - Fork 9
fix(unity-bootstrap-theme): changed height to min-height on hero-overlay classes #1466
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
Conversation
…lay classes UDS-1765
|
Storybook deployed at https://unity-uds-staging.s3.us-west-2.amazonaws.com/pr-1466/index.html |
scott-williams-az
left a comment
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.
Updating height to min-height will not have any effect because .hero-overlay has an absolute position is only an empty div used as an overlay. .hero-overlay does not contain any text that it can respond to as the font size changes.
I think you might need to adjust elements that wrap the h1 or header
|
Good afternoon! I hope you're doing excellent. After opening the link and increasing the size to 200%, the text remains inside the box, as shown in the screenshot below: Besides that, I provided another PR URL where the code from this PR hasn't been included. You'll see that it's still broken there. In that case, I would appreciate some guidance on the next steps, as the code appears to be working based on my understanding. |
|
Hi @scott-williams-az |
|
I think this is good but I am going to test on webspark to be sure this doesn't create any major changes for heroes since the change from a set height to a min height may make some too large |
Screen.Recording.2025-04-16.at.2.29.53.PM.movLooks good and doesn't cut off anymore! |


Changed height to min-height on
hero-overlayclassesTest steps :
For some reason, the provided extension twhich allows us to zoom in and out, doesn’t work in Storybook, making it difficult to test this PR.
Additionally, manually zooming in or out isn’t a viable solution since it affects the entire page, whereas the extension is designed to zoom only the text we’re working on. In other words, the extension adjusts the font size.
In conclusion, I believe the best way to test it is by integrating it into an instance in WS2.
URL to test it :
https://unity-uds-staging.s3.us-west-2.amazonaws.com/pr-1466/@asu/unity-bootstrap-theme/iframe.html?id=molecules-heroes-examples--hero-large-with-buttons&viewMode=story
UDS-1765
Description
Links