-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Serverless] Changes to TopNavMenu placement for serverless projects. (…
…#158053) ## Summary Part of #158034 This PR moves the TopNavMenu placement to below the breadcrumbs bar for the serverless project chrome layout. The app toolbar must appear below the breadcrumbs bar in the layout, when the app has TopNavMenu items registered with the navigation service. To prevent the layout from rendering an empty container, I had to create a new hook, `useHeaderActionMenuMounter`, that extracts the state from HeaderActionMenu. The state (`mounter: MountPoint | undefined`) is hoisted above so that the header can check if it is empty before rendering the container. _Future work is still needed to achieve the end goal of the design._ Apps must be able to define custom layouts, which commonly require grid and spacer components. The TopNavMenu needs augmentation to support the new API. See the project document from the issue. ## Screenshots **App showing the toolbar, with the container shown below breadcrumbs**  **App without the toolbar and no empty container** 
- Loading branch information
Showing
4 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters