diff --git a/docs/_includes/page-demo.njk b/docs/_includes/page-demo.njk index db32f58b5..5e40c2b26 100644 --- a/docs/_includes/page-demo.njk +++ b/docs/_includes/page-demo.njk @@ -16,7 +16,11 @@ - + - + + diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index 7d1e57faf..7d8844fff 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -37,6 +37,7 @@ {# Slots #} {% if component.slots.length %}

Slots

+

Learn more about using slots.

@@ -67,6 +68,7 @@ {# Properties #} {% if component.properties.length %}

Attributes & Properties

+

Learn more about attributes and properties.

@@ -113,6 +115,8 @@ {# Methods #} {% if component.methods.length %}

Methods

+

Learn more about methods.

+
@@ -143,34 +147,10 @@ {% endif %} - {# States #} - {% if component.states.length %} -

States

-
-
- - - - - - - - - {% for state in component.states %} - - - - - - {% endfor %} - -
NameDescriptionCSS selector
{{ state.name }}{{ state.description | inlineMarkdown | safe }}[data-state-{{ state.name }}]
-
- {% endif %} - {# Events #} {% if component.events.length %}

Events

+

Learn more about events.

@@ -197,6 +177,7 @@ {# Custom Properties #} {% if component.cssProperties.length %}

CSS custom properties

+

Learn more about CSS custom properties.

@@ -225,9 +206,37 @@ {% endif %} + {# Custom States #} + {% if component.cssStates.length %} +

Custom States

+

Learn more about custom states.

+ +
+
+ + + + + + + + + {% for state in component.cssStates %} + + + + + + {% endfor %} + +
NameDescriptionCSS selector
{{ state.name }}{{ state.description | inlineMarkdown | safe }}:state({{ state.name }})
+
+ {% endif %} + {# CSS Parts #} {% if component.cssParts.length %}

CSS parts

+

Learn more about CSS parts.

@@ -253,7 +262,7 @@ {% if component.dependencies.length %}

Dependencies

- This component automatically imports the following elements. Subdependencies, if any exist, will also be included in this list. + This component automatically imports the following elements. Sub-dependencies, if any exist, will also be included in this list.