Merge pull request #7873 from dehamzah/add-overrides-ui-name

Add Theme Overrides for Sidebar
This commit is contained in:
Patrik Oldsberg
2021-11-08 21:56:31 +01:00
committed by GitHub
2 changed files with 27 additions and 13 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/core-components': patch
---
Add Theme Overrides for Sidebar
@@ -350,21 +350,30 @@ export function SidebarSearchField(props: SidebarSearchFieldProps) {
);
}
export const SidebarSpace = styled('div')({
flex: 1,
});
export const SidebarSpace = styled('div')(
{
flex: 1,
},
{ name: 'BackstageSidebarSpace' },
);
export const SidebarSpacer = styled('div')({
height: 8,
});
export const SidebarSpacer = styled('div')(
{
height: 8,
},
{ name: 'BackstageSidebarSpacer' },
);
export const SidebarDivider = styled('hr')({
height: 1,
width: '100%',
background: '#383838',
border: 'none',
margin: '12px 0px',
});
export const SidebarDivider = styled('hr')(
{
height: 1,
width: '100%',
background: '#383838',
border: 'none',
margin: '12px 0px',
},
{ name: 'BackstageSidebarDivider' },
);
const styledScrollbar = (theme: Theme): CreateCSSProperties => ({
overflowY: 'auto',