diff --git a/packages/admin-ui/CHANGELOG.md b/packages/admin-ui/CHANGELOG.md index 89db604287b2fe..e0c2ded300d355 100644 --- a/packages/admin-ui/CHANGELOG.md +++ b/packages/admin-ui/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Enhancements + +- `Page`: Keep the header row at a consistent height regardless of whether actions are present, and stop rendering an empty actions container when no actions are provided [#76683](https://github.com/WordPress/gutenberg/pull/76683). + ### Breaking Changes - Change default `headingLevel` for the `Page` component's header from `2` to `1`, meaning from `h2` to `h1`. If you need to keep previous behaviour, use `` [#77617](https://github.com/WordPress/gutenberg/pull/77617) diff --git a/packages/admin-ui/src/breadcrumbs/style.module.css b/packages/admin-ui/src/breadcrumbs/style.module.css index 1c90137a1eb2c8..c356da8633b2cf 100644 --- a/packages/admin-ui/src/breadcrumbs/style.module.css +++ b/packages/admin-ui/src/breadcrumbs/style.module.css @@ -2,8 +2,6 @@ list-style: none; padding: 0; margin: 0; - /* @TODO: Replace with a `size` token once that category exists in the theme package. */ - min-height: calc(var(--wpds-dimension-base) * 8); } /* diff --git a/packages/admin-ui/src/page/header.tsx b/packages/admin-ui/src/page/header.tsx index 7cfa694d1d63c6..5bca91394a6b6e 100644 --- a/packages/admin-ui/src/page/header.tsx +++ b/packages/admin-ui/src/page/header.tsx @@ -35,7 +35,12 @@ export default function Header( { className={ styles.header } render={
} > - + { showSidebarToggle && ( - - { actions } - + { actions && ( + + { actions } + + ) } { subTitle && ( * { grid-column: 1 / -1;