Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions STANDARDS.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ The architecture pages that apply, in the architecture repository:
- `architecture/standards/web-elemental/principles/dialog-focus.md`: `sl-drawer` opens on its
heading unless it names a slotted control to open on, and `sl-settings` focuses its checked
radio unless its dialog marks something `autofocus`.
- `architecture/standards/web-elemental/principles/scroll-regions.md`: a list scrolls inside the
height its host gives it, its summary, status line, and controls in view.

## Design

Expand Down Expand Up @@ -63,8 +65,9 @@ The architecture pages that apply, in the architecture repository:
## Code

- A module header documents the public contract, what the module provides and promises, with no
reasoning; each export carries a one-line doc comment. A sheet's CSS custom properties, classes,
and layers are its exports, and each carries its comment.
reasoning; each export carries a one-line doc comment. A shared sheet's CSS custom properties,
classes, and layers are its exports, and each carries its comment; a component's shadow-root
sheet exports only the custom properties its header names, and its classes are internal.
- Sources use `.ts` relative specifiers, which tsc rewrites.
- The browser tier tests `dist/`, and no server transforms what it serves.
- Tests are TypeScript run under Node's type stripping, erasable syntax only, type-checked by
Expand Down