fix(ui): fix Container bottom margin clash in Header

- Changed Container default bottom spacing from padding-bottom to margin-bottom
- Prevented the Container margin-bottom from applying when used as the Header root element via mb="0"
- Renamed Header CSS classes from bui-HeaderPage* to bui-Header* to match the component name

Fixes https://linear.app/spotify/issue/BACUI-249

Signed-off-by: Charles de Dreuille <charles.dedreuille@gmail.com>
Made-with: Cursor
This commit is contained in:
Charles de Dreuille
2026-03-14 10:22:13 +00:00
parent 6f01c33a0e
commit 17d6398e22
7 changed files with 42 additions and 22 deletions
@@ -0,0 +1,5 @@
---
'@backstage/ui': patch
---
Fixed incorrect bottom spacing caused by `Container` using `padding-bottom` for its default bottom spacing. Changed to `margin-bottom` and prevented it from applying when `Container` is used as the `Header` root element.
+15
View File
@@ -0,0 +1,15 @@
---
'@backstage/ui': minor
---
**BREAKING**: Renamed internal CSS classes to match the `Header` component name.
**Migration notes**: If you are targeting these classes directly in your styles, update the following:
- `bui-HeaderPage``bui-Header`
- `bui-HeaderPageContent``bui-HeaderContent`
- `bui-HeaderPageBreadcrumbs``bui-HeaderBreadcrumbs`
- `bui-HeaderPageTabsWrapper``bui-HeaderTabsWrapper`
- `bui-HeaderPageControls``bui-HeaderControls`
**Affected components**: Header