문제: EmptySurface, TerminalErrorSurface, 접근 상태 화면, ErrorSummary의 제목이 h2로 고정돼 있다. Card(h3)나 상세 구획(h2) 안에 넣으면 그 안의 상태 문구가 카드 제목보다 상위 제목이 된다. /examples/states에서 h3 카드 안에 h2가 있었고, 섹션 h2 아래 접근 상태 화면도 h2였다. 상태 화면 제목을 <p>로 바꾸는 변이(M5)를 잡는 테스트도 없었다. 고른 방법: Card에 이미 있는 계약을 그대로 옮겼다. 위 네 컴포넌트에 headingLevel?: 2 | 3 | 4(기본 2)를 더하고, 이들을 그리는 AsyncSurface와 AccessSurface가 같은 prop을 넘긴다(그러지 않으면 가장 흔한 진입점에서 뒤집힘이 남는다). 타입은 state-surfaces.tsx의 HeadingLevel 하나에 둔다. 갤러리는 카드 안 상태에 4, 섹션 바로 아래 접근 상태에 3을 준다. 상태·오류 요약 CSS 선택자는 :is(h2, h3, h4)로 넓혔다. 공개 prop은 추가만 했고 기본값이 그대로라 기존 화면은 바뀌지 않는다. 버린 대안: 제목 수준 context(R7) — 모든 컨테이너가 제공자를 둬야 하고 Card의 prop 계약과 갈린다. Card의 인라인 2 | 3 | 4와 HeadingLevel을 합치는 것은 VD-05 재수출 경로를 건드려 이번 범위에서 뺐다. 위험·한계: 갤러리 화면이 바뀐다(카드 안 상태 제목 h4 16px, 접근 상태 h3 20px). 시각 골든은 오케스트레이터가 갱신한다. 실제 스크린 리더 제목 목록은 확인하지 않았다(접근성 트리 대신 component 단언). 검증: - RED: async-surface.test.tsx 새 테스트 7건이 수정 전 실패(예: "expected [ <h2></h2> ] to have a length of +0 but got 1"). - GREEN: async-surface.test.tsx 31/31, tests/component 220/220(4회 반복 통과, 부하 32에서 첫 실행 1건 실패 뒤 재현 안 됨). tsc app·test 통과, eslint 통과. e2e accessibility·typography·reference-form·reference-save chromium 27/27. Refs: docs/reviews/2026-11-01-maturity-review/08-presentation.md 08-05
162 lines
3.1 KiB
CSS
162 lines
3.1 KiB
CSS
@layer components {
|
|
.page-header {
|
|
max-width: 50rem;
|
|
padding-block: clamp(1rem, 5vw, 3.5rem) 0.5rem;
|
|
}
|
|
|
|
[data-route-heading]:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.page-header__eyebrow {
|
|
margin-block-end: 0.75rem;
|
|
color: var(--color-action);
|
|
font-size: 0.8rem;
|
|
font-weight: 800;
|
|
letter-spacing: 0.08em;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.page-header__description {
|
|
max-width: 45rem;
|
|
color: var(--color-content-muted);
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
}
|
|
|
|
.page-template {
|
|
display: grid;
|
|
gap: 1.25rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-template__breadcrumb {
|
|
padding-block-start: 1rem;
|
|
color: var(--color-content-muted);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.page-template__heading {
|
|
display: grid;
|
|
min-width: 0;
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
|
align-items: end;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.page-template__heading .page-header {
|
|
grid-row: span 2;
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-template__status,
|
|
.page-template__actions,
|
|
.status-page__actions,
|
|
.form-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: flex-end;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.page-template__layout {
|
|
display: grid;
|
|
min-width: 0;
|
|
gap: 1.5rem;
|
|
}
|
|
|
|
.page-template__layout[data-has-aside="true"] {
|
|
grid-template-columns: minmax(0, 1fr) minmax(14rem, 20rem);
|
|
}
|
|
|
|
.page-template__content,
|
|
.page-template__aside,
|
|
.collection-page__results,
|
|
.detail-page__sections,
|
|
.form-page__fields {
|
|
min-width: 0;
|
|
}
|
|
|
|
.page-template__aside,
|
|
.detail-page__metadata,
|
|
.collection-page__toolbar,
|
|
.form-error-summary {
|
|
border: 1px solid var(--color-border);
|
|
border-radius: var(--radius-surface);
|
|
padding: 1rem;
|
|
background: var(--color-panel);
|
|
}
|
|
|
|
.collection-page__toolbar,
|
|
.collection-page__active-filters,
|
|
.collection-page__bulk-actions {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: end;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.collection-page__result-count {
|
|
color: var(--color-content-muted);
|
|
}
|
|
|
|
.collection-page__results,
|
|
.detail-page__sections,
|
|
.form-page__fields,
|
|
.form-page__error-summary {
|
|
display: grid;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.collection-page__pagination {
|
|
margin-block-start: 1.25rem;
|
|
}
|
|
|
|
.detail-page__danger {
|
|
margin-block-start: 2rem;
|
|
border-top: 1px solid var(--color-danger-border);
|
|
padding-block-start: 1rem;
|
|
}
|
|
|
|
.form-error-summary {
|
|
border-color: var(--color-danger-border);
|
|
background: var(--color-danger-surface);
|
|
}
|
|
|
|
.form-error-summary :is(h2, h3, h4) {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.form-error-summary p,
|
|
.form-error-summary ul {
|
|
margin-block-end: 0;
|
|
}
|
|
|
|
.form-actions {
|
|
padding-block-start: 1rem;
|
|
border-top: 1px solid var(--color-border);
|
|
}
|
|
|
|
.form-actions--sticky {
|
|
position: sticky;
|
|
z-index: 10;
|
|
bottom: 0;
|
|
padding: 0.75rem;
|
|
background: color-mix(in oklab, var(--color-panel) 94%, transparent);
|
|
}
|
|
|
|
.status-page {
|
|
max-width: 48rem;
|
|
padding-block: 2rem;
|
|
}
|
|
|
|
.status-page__actions {
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.status-page__support {
|
|
color: var(--color-content-muted);
|
|
}
|
|
}
|