-
Notifications
You must be signed in to change notification settings - Fork 6
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
Add new banner
component
#651
Conversation
9b943b1
to
e77f7c7
Compare
e77f7c7
to
2eac008
Compare
2eac008
to
8017f32
Compare
89a404b
to
f12b323
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.
Good stuff, i have some suggestions you can consider.
I think it could be considered if a link is required. Maybe ddf wants the component to also be used without a link. This is potentially out-of-scope here since they didn't specify it, but i think its' worth asking if we haven't.
I'm unsure about the implementation of the image. By doing this, we use everything related to media-container, which has figures, fallbacks etc which might not be necessary.
I would suggest you consider setting the image as a backgrundImage directly inline instead, and simplify the html structure. This is also being done here. Maybe @rasben could chime in what he thinks about that.
I'd suggest you link to related PR's also for convenience 🚀
Good stuff with the underline!
a42d091
to
bb9a2e2
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.
7b7773b
to
55ef7b6
Compare
55ef7b6
to
00e28b5
Compare
This component contains a required link and title. It can be used with a description and a background image to enhance visual appeal. The title field is a `ReactNode` where the `<u>` (underlined) tag has a custom underline SVG placed beneath it.
Replaced the fixed `margin-left` pixels in `banner-content` with a new layout wrapper `banner__spacing` for dynamic spacing.
Rename mixin to be more generic Enhance responsiveness of component simplify grid stacking DDFFORM-540
DDFFORM-540
MediaContainer / image credited is not being correctly used here. To avoid redundant markup we use backgroundImage inline instead. DDFFORM-540
00e28b5
to
9a9e7c2
Compare
Link to issue
https://reload.atlassian.net/browse/DDFFORM-540
Description
This pull request adds a new
banner
component that contains a required link and title. It can be used with a description and a background image to enhance visual appeal.The
title
field is aReactNode
where the (underline) tag has a custom underlined SVG placed beneath it.Screenshot of the result