Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ <h2 id="forms-title">Forms</h2>
<p>브라우저 기본 validation과 CSS 상태 선택자로 입력 흐름을 만든다.</p>
</div>
<form class="component-card form-card" action="#forms">
<p class="form-note">
입력 전에는 helper text를 보여주고, 제출 또는 편집 후에는 브라우저 validation 상태에 맞춰 성공/오류 문구가 나타납니다.
</p>
<label>
실험 이름
<input name="name" required minlength="3" placeholder="예: 선언형 메뉴" />
Expand Down
11 changes: 11 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,17 @@
justify-self: start;
}

.form-note {
margin: 0;
border: 1px solid var(--color-border);
border-radius: var(--radius-frame);
padding: 12px 14px;
background: var(--color-surface-muted);
color: var(--color-muted);
font-size: 14px;
line-height: 1.6;
}

label {
display: grid;
gap: 8px;
Expand Down
Loading