This demo shows different designed affordances at different screen sizes (view the source too)…
0-30em
: collapsable sections30-60em
: structured content60em+
: tab-bar
The tab-bar
affordance
can use shadow-dom to establish
a styleable tab-bar and panels.
The required parts can be exposed for styling
with consistent pseudo-elements.
In a tab state, we likely want to style:
The accordion-like collapse
affordance
also uses shadow-dom to establish
summary-details like behavior for each section,
with an option to make the toggle-states
exclusive-collapse
.
In an accordion state, we likely want to style:
The fallback state is simply structured HTML, without any show/hide affordances. This does not require any special styling.