diff --git a/docs/_layouts/component.njk b/docs/_layouts/component.njk index aa4ca0fa9..70da11fc6 100644 --- a/docs/_layouts/component.njk +++ b/docs/_layouts/component.njk @@ -19,7 +19,7 @@

Slots

Learn more about using slots.

-
+ @@ -42,7 +42,7 @@ {% endfor %}
-
+ {% endif %} {# Properties #} @@ -50,13 +50,13 @@

Attributes & Properties

Learn more about attributes and properties.

-
+ - + @@ -77,7 +77,7 @@
Default {{ prop.default | inlineMarkdown | safe }}
{% endif %} -
Name DescriptionReflectsReflects
+ {% if prop.reflects %} {% endif %} @@ -89,7 +89,7 @@ {% endfor %}
-
+ {% endif %} {# Methods #} @@ -97,7 +97,7 @@

Methods

Learn more about methods.

-
+ @@ -124,7 +124,7 @@ {% endfor %}
-
+ {% endif %} {# Events #} @@ -132,7 +132,7 @@

Events

Learn more about events.

-
+ @@ -151,7 +151,7 @@ {% endfor %}
-
+ {% endif %} {# Custom Properties #} @@ -159,7 +159,7 @@

CSS custom properties

Learn more about CSS custom properties.

-
+ @@ -183,7 +183,7 @@ {% endfor %}
-
+ {% endif %} {# Custom States #} @@ -191,7 +191,7 @@

Custom States

Learn more about custom states.

-
+ @@ -210,7 +210,7 @@ {% endfor %}
-
+ {% endif %} {# CSS Parts #} @@ -218,7 +218,7 @@

CSS parts

Learn more about CSS parts.

-
+ @@ -235,7 +235,7 @@ {% endfor %}
-
+ {% endif %} {# Dependencies #} diff --git a/docs/assets/styles/docs.css b/docs/assets/styles/docs.css index 8bd5b1391..2695da882 100644 --- a/docs/assets/styles/docs.css +++ b/docs/assets/styles/docs.css @@ -717,13 +717,28 @@ table.colors { gap: 1rem; } -.component-table td > * + * { - margin-block-start: var(--wa-space-s); +/* Component API tables */ +wa-scroller:has(.component-table) { + margin-block-end: var(--wa-space-xl); } -.table-scroll { - overflow-x: auto; - margin-block-end: var(--wa-flow-spacing); +.component-table { + .table-name { + white-space: nowrap; + } + + .table-arguments, + .table-description { + min-width: 40ch; + } + + .table-reflect { + text-align: center; + } + + code { + white-space: inherit; + } } /** desktop */