Skip to content

Commit

Permalink
feat(page): rename [two-pane] to [expanded]
Browse files Browse the repository at this point in the history
  • Loading branch information
clshortfuse committed Aug 7, 2023
1 parent 95c9d41 commit 235d601
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions components/Page.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,17 @@ export default CustomElement
},
})
.observe({
twoPane: {
expanded: {
type: 'boolean',
reflect: 'write',
get({ paneTwo, paneTwoActive, _lastComputedInlineSize, paneTwoBreakpoint }) {
console.log('refreshing', { paneTwo, paneTwoActive, _lastComputedInlineSize, paneTwoBreakpoint }, paneTwo && (paneTwoActive || _lastComputedInlineSize >= paneTwoBreakpoint));
return paneTwo && (paneTwoActive || _lastComputedInlineSize >= paneTwoBreakpoint);
},
},
})
.html`
<slot id=slot></slot>
<slot id=two name=two hidden={!twoPane} ></slot>
<slot id=two name=two hidden={!expanded} ></slot>
`
.css`
:host {
Expand All @@ -56,7 +55,7 @@ export default CustomElement
letter-spacing: var(--mdw-typescale__body-large__letter-spacing);
}
:host([pane-two]) {
:host([expanded]) {
display: grid;
}
Expand All @@ -71,7 +70,7 @@ export default CustomElement
grid-auto-columns: 360px;
}
:host([two-pane][pane-one="fixed"]) {
:host([expanded][pane-one="fixed"]) {
grid-template-columns: 360px;
}
Expand Down

0 comments on commit 235d601

Please sign in to comment.