Repository navigation
fix(ui): adjust plugin header spacing - #34103
Conversation
Changed Packages
|
🎨 Visual Testing with Chromatic
|
There was a problem hiding this comment.
Pull request overview
Adjusts PluginHeader spacing so tabbed and non-tabbed variants align more consistently with surrounding page content, with accompanying Storybook/theme updates to visually validate the layout.
Changes:
- Tweaks
PluginHeaderstructure + CSS to standardize horizontal padding and vertical spacing. - Removes
HeaderToptop padding and updates the Spotify Storybook theme overrides to match the new layout. - Adds a “no header + tabs” recipe story for visual coverage.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/ui/src/recipes/PluginHeaderAndHeader.stories.tsx | Updates page content spacing and adds a tabbed “no header” recipe story. |
| packages/ui/src/components/PluginHeader/PluginHeader.tsx | Refactors PluginHeader DOM structure and height measurement ref target. |
| packages/ui/src/components/PluginHeader/PluginHeader.module.css | Moves padding to the root and adjusts borders based on tab presence. |
| packages/ui/src/components/Header/Header.module.css | Removes top padding from the Header top region. |
| .storybook/themes/spotify.css | Updates Spotify theme overrides for the new PluginHeader spacing. |
| .changeset/plugin-header-spacing.md | Patch changeset describing the spacing adjustment. |
e1d056b to
439e1bf
Compare
f93cf67 to
5e5f52a
Compare
Align PluginHeader spacing across tabbed and non-tabbed variants so the component owns the surrounding page spacing more consistently. Signed-off-by: Charles de Dreuille <[email protected]>
Signed-off-by: Charles de Dreuille <[email protected]>
Signed-off-by: Charles de Dreuille <[email protected]>
5e5f52a to
a9f3d71
Compare
Signed-off-by: Charles de Dreuille <[email protected]>
|
Thanks @Rugvip. I managed to introduce custom styles only when the header from
|
Signed-off-by: Charles de Dreuille <[email protected]>
Signed-off-by: Charles de Dreuille <[email protected]>
Signed-off-by: Charles de Dreuille <[email protected]>
|
@Rugvip I did a new pass to bring the header as it was before when the one from
|
|
Thank you for contributing to Backstage! The changes in this pull request will be part of the |





Hey, I just made a Pull Request!
Adjusted
PluginHeaderspacing so tabbed and non-tabbed variants align consistently with surrounding page content. This also updates the Spotify Storybook theme override and adds a tabbed no-header recipe for visual coverage.Before
After
With Header from
core-components✔️ Checklist
Signed-off-byline in the message. (more info)Test plan
yarn prettier --write .storybook/themes/spotify.css packages/ui/src/components/Header/Header.module.css packages/ui/src/components/PluginHeader/PluginHeader.module.css packages/ui/src/components/PluginHeader/PluginHeader.tsx packages/ui/src/recipes/PluginHeaderAndHeader.stories.tsx .changeset/plugin-header-spacing.mdyarn build:api-reports