Skip to content

CSS: drawer-layout.content ​

.content — The primary content pane that fills remaining space beside the tray.

Once the parent's inline-size drops below 64em (16em tray width + 48em breakpoint), a @container query on the parent's pantoken-drawer-layout container drops this member's min-inline-size to 0 automatically, matching the manual [should-overlay-tray] override. This also applies when the tray is closed or absent.

Usage ​

css
@import "@pantoken/components/components.css";
@import "@pantoken/components/drawer-layout.content.css";

Examples ​

html
<div class="instui-drawer-layout">
  <div class="content" role="region" aria-label="Course content">
    <p class="instui-text">Tray content</p>
  </div>
</div>

Structure ​

text
@scope (@component drawer-layout)
  .content
    ‹content›
flowchart TD subgraph sg0 ["@scope (@component drawer-layout)"] n1(".content"):::cssdoc-part n2[/"‹content›"/]:::cssdoc-slot end n1 --> n2 classDef cssdoc-root stroke-width:1px; classDef cssdoc-part stroke-width:1px; classDef cssdoc-slot stroke-width:1px; classDef cssdoc-component stroke-width:1px;

Conditions ​

TypeQueryDescription
containerpantoken-drawer-layout (max-width: 64em)—

Accessibility ​

Use a div with role="region" (InstUI's DrawerLayout convention) and always name it with aria-label or aria-labelledby.

ConditionsRebrand (light)Rebrand (dark)CanvasCanvas High Contrast
reflow-at-320pxWCAG 2.2 1.4.10PassPassPassPass
text-spacing-no-clippingWCAG 2.2 1.4.12PassPassPassPass
Screen reader (simulated)Rebrand (light)Rebrand (dark)CanvasCanvas High Contrast
AnnouncementsPassPassPassPass

These automated results do not establish that the page meets WCAG; manual review is still needed.

Tokens consumed ​

TokenTypeValue
--drawer-layout-content-min-inline-size<length>—
--pantoken-bp-md<length>48em