diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index 7d1e57faf..1b7a95cc5 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -143,31 +143,6 @@ {% 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

@@ -225,6 +200,31 @@ {% endif %} + {# Custom States #} + {% if component.cssStates.length %} +

Custom States

+
+ + + + + + + + + + {% for state in component.cssStates %} + + + + + + {% endfor %} + +
NameDescriptionCSS selector
{{ state.name }}{{ state.description | inlineMarkdown | safe }}[data-state-{{ state.name }}]
+
+ {% endif %} + {# CSS Parts #} {% if component.cssParts.length %}

CSS parts