-
Notifications
You must be signed in to change notification settings - Fork 524
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
feat(placement): hp takeover #9022
Conversation
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.
Mostly nits, one major flag: we don't seem to use the placementData.hpFooter
data anywhere - is that intentional, or the result of a late-stage abstraction? :)
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 flag after testing on stage which it would be good to make a conscious decision on. Otherwise looks good! (The nits can be safely ignored) 🚀
<section className="place hp-main"></section> | ||
) : ( | ||
<PlacementInner | ||
pong={placementData.hpMain} | ||
pong={placementData} | ||
extraClassNames={["hp-main"]} |
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.
nit: could this be more generic and be hp-takover-banner
or something?
}) { | ||
const { backgroundColor } = placementData?.colors || {}; | ||
const css = Object.fromEntries( | ||
[["--place-hp-main-background", backgroundColor]].filter(([_, v]) => |
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.
nit: similarly, could this be more generic and be something like --place-hp-banner-background
Summary
Support HP Takeover Placements.