Skip to content

Commit

Permalink
Name Window slots
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Dec 19, 2023
1 parent 589a51e commit 8923572
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/components/Window.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
}));
Expand Down

0 comments on commit 8923572

Please sign in to comment.