Skip to content
Snippets Groups Projects
Commit 89235726 authored by Chris Beer's avatar Chris Beer
Browse files

Name Window slots

parent 589a51eb
No related branches found
No related tags found
1 merge request!19Draft: Merge video support into mui5
......@@ -26,7 +26,7 @@ const columnMixin = {
minHeight: 0,
};
const Root = styled(Paper)(({ ownerState, theme }) => ({
const Root = styled(Paper, { name: 'Window', slot: 'root' })(({ ownerState, theme }) => ({
...columnMixin,
backgroundColor: theme.palette.shades?.dark,
borderRadius: 0,
......@@ -41,27 +41,27 @@ const Root = styled(Paper)(({ ownerState, theme }) => ({
}),
}));
const ContentRow = styled('div')(() => ({
const ContentRow = styled('div', { name: 'Window', slot: 'row' })(() => ({
...rowMixin,
}));
const ContentColumn = styled('div')(() => ({
const ContentColumn = styled('div', { name: 'Window', slot: 'column' })(() => ({
...columnMixin,
}));
const StyledPrimaryWindow = styled(PrimaryWindow)(() => ({
const StyledPrimaryWindow = styled(PrimaryWindow, { name: 'Window', slot: 'primary' })(() => ({
...rowMixin,
height: '300px',
position: 'relative',
}));
const StyledCompanionAreaBottom = styled(CompanionArea)(() => ({
const StyledCompanionAreaBottom = styled(CompanionArea, { name: 'Window', slot: 'bottom' })(() => ({
...rowMixin,
flex: '0',
flexBasis: 'auto',
}));
const StyledCompanionAreaRight = styled('div')(() => ({
const StyledCompanionAreaRight = styled('div', { name: 'Window', slot: 'right' })(() => ({
...rowMixin,
flex: '0 1 auto',
}));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment