Fix logo position in Titlepiece component - #14541
Conversation
6037226 to
2572abe
Compare
Fully agree with this point. I was trying to get the logo styles inside the logo component as I think it make sense for them to belong there (e.g. the SVG styles), but agree that the grid styling should live in the
Chromatic is showing that the logo has moved to the left in many snapshots on larger screen sizes. I don't think this was intended? |
…nt whole picture logo rendering for slim nav variation
I actually think the logo sizing and positioning should be adjusted from outside of the component. We should be able to update the svg sizing using props rather than targeting
Thanks for spotting that! I'd missed how I'd accidentally tweaked styles I didn't mean to! I've hopefully fixed that now 🙏 |
What does this change?
Adjusts the alignment of the logo in the header (
Titlepiececomponent) for the mobileMedium breakpointDoes this by
TitlepiececomponentLogocomponent is purely to control which logo appears; theTitlepiececomponent brings together all the separate sub components into a header componentmobileMediumAlso adds three chromatic snapshot breakpoints to help to capture these issues earlier in future
Why?
I noticed a positioning bug which occurred after some recent work on the
Titlepiececomponent. Since the logo is clickable and the menu has a higher z-index, this prevents users from being able to click "home" easily onmobileMediumandmobileLandscapesized screens.Screenshots