diff --git a/docs/_includes/sidebar.njk b/docs/_includes/sidebar.njk
index 058ecf734..5f8ba90c0 100644
--- a/docs/_includes/sidebar.njk
+++ b/docs/_includes/sidebar.njk
@@ -262,7 +262,8 @@
Category Previews
Shopping Carts
Category Filters
- Product Detailmary">Order Summaries
+ Product Detail
+ Order Summaries
Order History
diff --git a/docs/docs/patterns/portfilio.md b/docs/docs/patterns/portfilio.md
deleted file mode 100644
index 99f893c27..000000000
--- a/docs/docs/patterns/portfilio.md
+++ /dev/null
@@ -1,9 +0,0 @@
----
-title: Business
-description: TODO
-layout: pattern.njk
----
-
-TODO Page Description
-
-## Examples
\ No newline at end of file
diff --git a/src/components/code-demo/code-demo.styles.ts b/src/components/code-demo/code-demo.styles.ts
index b9f3d48a2..4992791f8 100644
--- a/src/components/code-demo/code-demo.styles.ts
+++ b/src/components/code-demo/code-demo.styles.ts
@@ -66,6 +66,7 @@ export default css`
overflow: hidden;
transition-property: height, display;
transition-behavior: allow-discrete;
+ display: block;
&::slotted(pre) {
position: relative;
@@ -82,49 +83,44 @@ export default css`
&:not(:has(+ #buttons)) {
border-bottom: none;
}
- }
- [part~='toggle-button'] wa-icon {
- transition-property: rotate;
- }
-
- :host(:not([open])) {
- #source,
- [part~='toggle-button'] wa-icon {
- transition-duration: var(--code-collapse-duration);
- }
-
- #source {
- /* Collapsed */
+ /* Collapsed */
+ &:not(:host([open]) *) {
height: 0px;
display: none;
}
- }
- :host([open]) {
- #source,
- [part~='toggle-button'] wa-icon {
- transition-duration: var(--code-expand-duration);
- }
-
- #source {
- /* Expanded */
+ /* Expanded */
+ &:is(:host([open]) *) {
height: auto;
display: block;
- }
- @starting-style {
- #source {
+ @starting-style {
height: 0px;
display: block;
}
}
+ }
- [part~='toggle-button'] wa-icon {
+ [part~='toggle-button'] wa-icon {
+ transition-property: rotate;
+
+ &:is(:host([open]) *) {
rotate: 180deg;
}
}
+ #source,
+ [part~='toggle-button'] wa-icon {
+ &:not(:host([open]) *) {
+ transition-duration: var(--code-collapse-duration);
+ }
+
+ &:is(:host([open]) *) {
+ transition-duration: var(--code-expand-duration);
+ }
+ }
+
#buttons {
display: flex;
align-items: stretch;
diff --git a/src/components/page/page.ts b/src/components/page/page.ts
index 191b98d4d..9fcb90035 100644
--- a/src/components/page/page.ts
+++ b/src/components/page/page.ts
@@ -298,6 +298,8 @@ export default class WaPage extends WebAwesomeElement {
footer:drawer__footer
"
class="navigation-drawer"
+ with-header
+ with-footer
>