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

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

Custom States

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

Dependencies