Skip to content

WS-2411: Fix Brand header logo position for long brands#13842

Merged
elvinasv merged 3 commits intolatestfrom
WS-2411-fix-brand-header-logo-position-for-ws-languages
Mar 27, 2026
Merged

WS-2411: Fix Brand header logo position for long brands#13842
elvinasv merged 3 commits intolatestfrom
WS-2411-fix-brand-header-logo-position-for-ws-languages

Conversation

@elvinasv
Copy link
Copy Markdown
Member

Resolves JIRA: https://bbc.atlassian.net/browse/WS-2411

Summary

  • After WS-2114: Upgrade Account Header to Production‑Ready Version #13785, the long brand names were no longer centered on smaller screens. This PR fixes that issue.
  • It applies align-items: stretch; to the Banner component and sets max-width: 100%; to ensure the SVG logo doesn’t overflow and remains vertically centered on smaller screens.
Screenshot 2026-03-27 at 13 17 07 Screenshot 2026-03-27 at 13 22 21

Testing

  1. List the steps required to test this PR.

Useful Links

@elvinasv elvinasv marked this pull request as ready for review March 27, 2026 11:23
Copilot AI review requested due to automatic review settings March 27, 2026 11:23
@elvinasv elvinasv self-assigned this Mar 27, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a regression where long brand logos/names in the header were no longer centered on smaller screens by adjusting the psammead-brand layout and constraining SVG sizing.

Changes:

  • Updates Banner/SvgWrapper layout to use flex stretching so the brand content stays vertically aligned when wrapping on small viewports.
  • Adds max-width: 100% to the brand SVG to prevent overflow on narrow screens.
  • Regenerates affected Jest snapshots across legacy containers and PageLayoutWrapper.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/app/legacy/psammead/psammead-brand/src/index.jsx Core styling adjustments to keep long brands centered and prevent SVG overflow.
src/app/legacy/psammead/psammead-brand/src/__snapshots__/index.test.jsx.snap Snapshot updates reflecting new Banner/SvgWrapper/BrandSvg styles.
src/app/legacy/containers/Header/__snapshots__/index.test.jsx.snap Snapshot updates due to brand style changes impacting header rendering.
src/app/legacy/containers/Footer/__snapshots__/index.test.jsx.snap Snapshot updates due to brand style changes impacting footer rendering.
src/app/legacy/containers/Brand/__snapshots__/index.test.jsx.snap Snapshot updates due to brand style changes in Brand container.
src/app/components/PageLayoutWrapper/__snapshots__/index.test.tsx.snap Snapshot updates where the brand/header rendering is included in layout wrapper output.

Copy link
Copy Markdown
Contributor

@amoore108 amoore108 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍 Tested a variant service with the script switch button and it seems ok too

@elvinasv elvinasv merged commit d99af68 into latest Mar 27, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants