Lightbox
라이트박스
라이트박스가 사진이나 영상을 크게 띄워주고 주변은 어둡게 만들어요.
<dialog>실제 예시
사진을 선택하여 캡션과 함께 전체 크기 보기로 엽니다. 이전, 다음, 닫기 버튼이 있습니다.
주요 부분
- 01트리거
- 02Anchored or modal surface
- 03Focus boundary
- 04Dismiss path
사용할 때
이것은 갤러리에서 현재 위치를 잃지 않으면서 미디어를 자세히 살펴보는 데 사용하세요.
다음 경우에는 사용하지 마세요
복잡한 편집이나 병렬 비교가 필요한 작업에는 절대 사용하지 마세요.
코드에서 사용된 이름
<dialog> 출시하기 전에
Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states.
Outcome:Complete the task with 라이트박스 (Lightbox)。 User context:사진을 선택하여 캡션과 함께 전체 크기 보기로 엽니다. 이전, 다음, 닫기 버튼이 있습니다. Recommended pattern:라이트박스 (Lightbox)。 Why it fits:이것은 갤러리에서 현재 위치를 잃지 않으면서 미디어를 자세히 살펴보는 데 사용하세요. Do not use it when:복잡한 편집이나 병렬 비교가 필요한 작업에는 절대 사용하지 마세요. 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):하나의 공식 표준이 전체 용어를 통제하지 않음. 의미는 팀, 플랫폼 또는 프레임워크마다 달라질 수 있음. Unknowns to confirm: Product wording, data source, analytics events, supported devices and languages, and platform limits.
이 요청을 확인하세요
Review how 라이트박스 (Lightbox) is used now. Definition: 라이트박스가 사진이나 영상을 크게 띄워주고 주변은 어둡게 만들어요. Release checks: Move focus on purpose. Keep it inside only when the overlay blocks the page. Support Escape and a visible close button, then return focus to the opener. Keep entered data and check small-screen, loading, and failure states. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.