-
Notifications
You must be signed in to change notification settings - Fork 159
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(universal-banner): Image resizing and design updates #8947
feat(universal-banner): Image resizing and design updates #8947
Conversation
Deploy preview created for package Built with commit: 3c58fd065dd8bc7357b43bf4b82d8d53ae37afe0 |
Deploy preview created for package Built with commit: 3c58fd065dd8bc7357b43bf4b82d8d53ae37afe0 |
Deploy preview created for package Built with commit: 3c58fd065dd8bc7357b43bf4b82d8d53ae37afe0 |
Deploy preview created for package Built with commit: 3c58fd065dd8bc7357b43bf4b82d8d53ae37afe0 |
Deploy preview created for package Built with commit: 3c58fd065dd8bc7357b43bf4b82d8d53ae37afe0 |
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.
@andy-blum You fixed a lot of the issues for Universal banner
, yay! I am seeing a few things that stick out
- Looks like there's an extra bit of space between the left side of the window and the start of the image. Image should be flush with the left edge when the image appears until the screen is beyond
@max
. The image frame should align with the grid, but can't tell with the extra spacing.
- In Focus state, the Focus border looks fine at the bottom of the banner, but looks cut off on the top, left, and right. Same with Active state.
- On
@md
and@sm
, the icon should be18px
from the top of the banner. Currently, it looks like it's set to16px
.
- On
@md
, the heading and body text area look like they are smaller than the specs.
- For
@sm
, the heading and body text area should end16px
from the icon.
- The
@max
button alignment looks fixed. For@xlg
, looks like it should be updated to match the specs - the button's right edge should be just at the left edge of the last column
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.
Looks good! I like the usage of @carbon/layout
to get the matching breakpoint so that you can alter the shadow root based on the treatment of the CTA link. However, I have some comments/concerns about the display of the CTA icon for when the Content Author decides to use the CTA type outside of local.
packages/styles/scss/components/universal-banner/_universal-banner.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/universal-banner/_universal-banner.scss
Outdated
Show resolved
Hide resolved
packages/styles/scss/components/universal-banner/_universal-banner.scss
Outdated
Show resolved
Hide resolved
packages/web-components/src/components/universal-banner/universal-banner.ts
Show resolved
Hide resolved
packages/web-components/src/components/universal-banner/universal-banner.ts
Outdated
Show resolved
Hide resolved
@proeung the latest changes should address your feedback, and will now dynamically set the icon used by the header. |
Took a look through and looks good on the design side - seeing that the e2e test for WC seems to be failing |
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.
LGTM! Thanks for sticking this one out @andy-blum 🚀🚀🚀
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.
LGTM!
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.
Thanks @andy-blum!
Related Ticket(s)
Closes #8811
Description
This PR updates the universal banner component's styles to adhere to the functional specs and updates the component's rendered shadow dom to make the entire banenr a link at smaller screen sizes
Changelog
Changed
sm
andmd
breakpoints