Skip to content

Commit

Permalink
Fix duplicate ImageInput label (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer authored Oct 17, 2024
1 parent 2e6a4be commit 9b38598
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 9b38598

Please sign in to comment.