diff --git a/.Jules/palette.md b/.Jules/palette.md index 104c1e4b..667bcdb2 100644 --- a/.Jules/palette.md +++ b/.Jules/palette.md @@ -9,3 +9,6 @@ ## 2024-11-20 - CopyPromptButton 접근성 향상 (동적 텍스트 및 상태) **Learning:** `CopyPromptButton`과 같이 버튼을 클릭했을 때 시각적으로만 상태가 변하고(예: 복사 아이콘이 체크 아이콘으로 변경), 텍스트가 동적으로 변경되는 컴포넌트에서는 스크린 리더 사용자가 상태 변화를 알아채기 어렵습니다. 또한 스크린 리더가 순수 장식용 아이콘까지 불필요하게 읽을 수 있습니다. **Action:** 동적으로 변경되는 텍스트를 ``로 감싸 스크린 리더가 즉시 변경 사항을 읽어주도록 해야 합니다. ` diff --git a/packages/web/src/components/auth/reset-password-form.tsx b/packages/web/src/components/auth/reset-password-form.tsx index 99066a69..be0c7c68 100644 --- a/packages/web/src/components/auth/reset-password-form.tsx +++ b/packages/web/src/components/auth/reset-password-form.tsx @@ -2,6 +2,7 @@ import { useState } from 'react' import Link from 'next/link' +import { Loader2 } from 'lucide-react' import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' import { Button, buttonVariants } from '@/components/ui/button' @@ -110,7 +111,14 @@ export function ResetPasswordForm({ token, email }: ResetPasswordFormProps) { )} diff --git a/packages/web/src/components/org/create-org-modal.tsx b/packages/web/src/components/org/create-org-modal.tsx index 37d84620..d51fd20e 100644 --- a/packages/web/src/components/org/create-org-modal.tsx +++ b/packages/web/src/components/org/create-org-modal.tsx @@ -1,6 +1,7 @@ 'use client' import { useState, useEffect } from 'react' +import { Loader2 } from 'lucide-react' import { useRouter } from 'next/navigation' import { AlertDialog, @@ -116,7 +117,14 @@ export function CreateOrgModal({ open, onOpenChange }: CreateOrgModalProps) { size="sm" disabled={!name.trim() || mutation.isPending} > - {mutation.isPending ? '생성 중…' : '생성'} + {mutation.isPending ? ( + <> +