Skip to content

Commit

Permalink
Fix duplicate ImageInput label
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Oct 17, 2024
1 parent 2e6a4be commit a3c28a3
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/circuit-ui/components/ImageInput/ImageInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,7 @@ export const ImageInput = ({
isDragging && classes.dragging,
)}
>
<FieldLabelText
label={label}
hideLabel={hideLabel}
required={required}
optionalLabel={optionalLabel}
/>
<span className={utilClasses.hideVisually}>{label}</span>
<Component src={src || previewImage} aria-hidden="true" />
</FieldLabel>
{src ? (
Expand Down

0 comments on commit a3c28a3

Please sign in to comment.