Apply sidebar changes to create-app

Signed-off-by: Philipp Hugenroth <philipph@spotify.com>
This commit is contained in:
Philipp Hugenroth
2021-07-02 14:46:19 +02:00
parent 65c0d756cb
commit e4244f94ba
2 changed files with 9 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/create-app': patch
---
Use SidebarScrollWrapper to imporve responiveness of the current sidebar. Change: Wrap a section of SidebarItems with this component to enable scroll for smaller screens. It can also be used in sidebar plugins (see Shortcuts plugin for an example).
@@ -34,6 +34,7 @@ import {
SidebarItem,
SidebarDivider,
SidebarSpace,
SidebarScrollWrapper,
} from '@backstage/core-components';
const useSidebarLogoStyles = makeStyles({
@@ -82,7 +83,9 @@ export const Root = ({ children }: PropsWithChildren<{}>) => (
<SidebarItem icon={CreateComponentIcon} to="create" text="Create..." />
{/* End global nav */}
<SidebarDivider />
<SidebarItem icon={MapIcon} to="tech-radar" text="Tech Radar" />
<SidebarScrollWrapper>
<SidebarItem icon={MapIcon} to="tech-radar" text="Tech Radar" />
</SidebarScrollWrapper>
<SidebarSpace />
<SidebarDivider />
<SidebarSettings />