Skip to content

Conversation

@juanmitriatti
Copy link
Contributor

@juanmitriatti juanmitriatti commented Feb 10, 2025

Changed height to min-height on hero-overlay classes

Test 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.

WhatsApp Image 2025-02-17 at 10 00 08 AM

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

@juanmitriatti juanmitriatti requested a review from a team as a code owner February 10, 2025 19:37
@asu-jenkins-devops
Copy link
Collaborator

Copy link
Contributor

@scott-williams-az scott-williams-az left a 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

@juanmitriatti
Copy link
Contributor Author

juanmitriatti commented Feb 18, 2025

Hi @scott-williams-az

Good afternoon! I hope you're doing excellent.
I reviewed the PR feedback, and it appears to be working as expected based on the ticket requirements.

After opening the link and increasing the size to 200%, the text remains inside the box, as shown in the screenshot below:
PR URL : https://unity-uds-staging.s3.us-west-2.amazonaws.com/pr-1466/@asu/unity-bootstrap-theme/iframe.html?args=&id=molecules-heroes-examples--hero-large-with-buttons&viewMode=story
WhatsApp Image 2025-02-18 at 2 22 02 PM

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.
PR URL : https://asu.github.io/asu-unity-stack/@asu/unity-bootstrap-theme/iframe.html?args=&id=molecules-heroes-examples--hero-large-with-buttons&viewMode=story
WhatsApp Image 2025-02-18 at 2 23 13 PM

In that case, I would appreciate some guidance on the next steps, as the code appears to be working based on my understanding.
Thanks in advance.

@juanmitriatti
Copy link
Contributor Author

Hi @scott-williams-az
Good morning. I've incorporated your feedback from last week regarding the PR for the small and medium heroes. Could you please take a look at it now? Thank you.
CC @mlsamuelson

@davidornelas11
Copy link
Contributor

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

@davidornelas11
Copy link
Contributor

davidornelas11 commented Apr 16, 2025

Screen.Recording.2025-04-16.at.2.29.53.PM.mov

Looks good and doesn't cut off anymore!

@davidornelas11 davidornelas11 merged commit 5550253 into dev Apr 16, 2025
1 check passed
@davidornelas11 davidornelas11 deleted the UDS-1765 branch April 16, 2025 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants