Read-only Field
읽기 전용 필드
읽기 전용 필드는 포커스를 받을 수 있으며 값이 복사될 수 있습니다. 사용자는 값을 수정할 수 없습니다.
readonly: focus + copy + submit, no edit; disabled: no normal focus or submit- 1표시 이름 · 편집 가능
value="Maya" - 2Account ID · 읽기 전용
readonly - 3초대 코드 · 비활성화
disabled
<input readonly>readonly: focus + copy + submit, no edit; disabled: no normal focus or submitA11Y다른 예시
계정 ID는 읽기 전용입니다. 사용자가 선택하고 복사할 수 있습니다. 지원되는 네이티브 필드도 여전히 해당 값을 제출합니다.
주요 부분
- 01필드 레이블
- 02현재 값
- 03읽기 전용 속성
- 04포커스 동작
- 05복사 동작
- 06폼 제출 동작
사용할 때
값을 항상 표시하고 복사할 수 있어야 할 때 사용하세요. 현재 작업은 편집을 허용하지 않아야 합니다.
다음 경우에는 사용하지 마세요
aria-readonly만 사용하여 편집을 차단하지 마세요. 네이티브 readonly는 지원되는 텍스트 컨트롤에만 적용됩니다.
코드에서 사용된 이름
readonly: focus + copy + submit, no edit; disabled: no normal focus or submit 출시하기 전에
Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages.
Outcome:Complete the task with 읽기 전용 필드 (Read-only Field)。 User context:계정 ID는 읽기 전용입니다. 사용자가 선택하고 복사할 수 있습니다. 지원되는 네이티브 필드도 여전히 해당 값을 제출합니다. Recommended pattern:읽기 전용 필드 (Read-only Field)。 Why it fits:값을 항상 표시하고 복사할 수 있어야 할 때 사용하세요. 현재 작업은 편집을 허용하지 않아야 합니다. Do not use it when:aria-readonly만 사용하여 편집을 차단하지 마세요. 네이티브 readonly는 지원되는 텍스트 컨트롤에만 적용됩니다. Product requirements: Define the default, loading, empty, error, success, and recovery states. Keep user input. Give clear feedback after every action. Accessibility and resilience: Use semantic HTML, full keyboard access, and visible focus. Make the layout work when zoomed and support reduced motion. Follow the project’s current rules. Do not add a new UI library unless the project already uses it. Acceptance criteria: The main task works with keyboard only and at 320px width. Focus and status changes are announced. Check loading, failure, retry, cancel, and reduced-motion paths. Evidence and limits (evidence boundary):이 표준은 나열된 범위만 적용합니다. 시각적 스타일, 제품 결정, 또는 Vibulary 예시는 선택하지 않습니다. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
이 요청을 확인하세요
Review how 읽기 전용 필드 (Read-only Field) is used now. Definition: 읽기 전용 필드는 포커스를 받을 수 있으며 값이 복사될 수 있습니다. 사용자는 값을 수정할 수 없습니다. Release checks: Give each field a label that code can read. Link hints and errors, and keep entered values. Check autofill, keyboard order, validation timing, submit states, failure recovery, zoom, and languages. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.