-
Notifications
You must be signed in to change notification settings - Fork 41
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
HDS-1724-hero-arrow #1211
Conversation
bfbadcb
to
fbd0396
Compare
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 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)); |
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.
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?
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.
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
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.
One request: the stories have too many h1-elements.
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?
Screenshots (if appropriate):
Add to changelog