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

HDS-1724-hero-arrow #1211

Merged
merged 5 commits into from
Jan 31, 2024
Merged

HDS-1724-hero-arrow #1211

merged 5 commits into from
Jan 31, 2024

Conversation

mrTuomoK
Copy link
Contributor

@mrTuomoK mrTuomoK commented Jan 15, 2024

Description

Adds the possibility to show an arrow icon in the bottom left corner of Hero. Also customisable by setting --arrow-icon-color in the Hero theme.

Can be tested here (this is not the newest version, but the arrow is working exactly the same, the dummy content has been changed after this)

Related Issue

HDS-1724

How Has This Been Tested?

  • local machine, updated reference images

Screenshots (if appropriate):

image

Add to changelog

  • Added needed line to changelog

@mrTuomoK mrTuomoK requested a review from a team January 15, 2024 13:12
Copy link
Contributor

@NikoHelle NikoHelle left a comment

Choose a reason for hiding this comment

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

Nice elegant solution. Good work! Left one comment.

color: var(--arrow-icon-color);

/* the following is magic to calculate a proper margins (icon has empty space in it that is taken into account) */
margin-left: calc(var(--padding-horizontal) - (var(--arrow-icon-size) / 4));
Copy link
Contributor

Choose a reason for hiding this comment

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

The icon svg has soooooo much empty spacing! 😲

Could the icon be set to the exact size by wrapping it to an element which could delete extra space with negative margins?

Copy link
Contributor Author

@mrTuomoK mrTuomoK Jan 17, 2024

Choose a reason for hiding this comment

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

Maybe 🤷 It's just that the icons aren't spaced similarly to each other so it might be a hell of a job to do 😆 this 25% (or / 4) is just what works with the arrow down :D

Copy link
Contributor

@NikoHelle NikoHelle left a comment

Choose a reason for hiding this comment

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

One request: the stories have too many h1-elements.

@mrTuomoK mrTuomoK requested a review from a team January 29, 2024 07:34
@mrTuomoK mrTuomoK merged commit 3a60649 into development Jan 31, 2024
6 checks passed
@mrTuomoK mrTuomoK deleted the HDS-1724-hero-arrow branch January 31, 2024 08:40
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.

3 participants