Skip to content

Commit d836743

Browse files
committed
nits
1 parent 4d73d94 commit d836743

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/app/components/redesign/components/InputField.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,15 @@ export const InputField = forwardRef<HTMLInputElement, InputFieldProps>(
6565
)}
6666
id={fieldId}
6767
name={fieldId}
68+
aria-invalid={!!error}
69+
aria-describedby={displayError ? 'input-error' : undefined}
6870
{...props}
6971
/>
7072

7173
{displayError && (
7274
<span
75+
id="input-error"
76+
role="alert"
7377
className="absolute right-3 top-full
7478
-translate-y-1/2
7579
px-1 text-xs text-text-error bg-white"

frontend/app/components/redesign/components/ToolsWalletAddress.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ export const ToolsWalletAddress = ({ toolName }: ToolsWalletAddressProps) => {
176176
disabled={snap.isWalletConnected}
177177
readOnly={isLoading}
178178
error={error?.fieldErrors.walletAddress}
179-
aria-invalid={!!error?.fieldErrors.walletAddress}
180-
aria-describedby="wallet-status"
181179
required={!snap.isWalletConnected}
182180
/>
183181
</div>

0 commit comments

Comments
 (0)