Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

[MM-28315] Hide file input on Picture Selector for Firefox #6380

Merged
merged 3 commits into from
Sep 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions components/__snapshots__/picture_selector.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ exports[`components/picture_selector should match snapshot, default picture prov
<input
accept=".jpg,.png,.bmp"
aria-hidden={true}
className="PictureSelector__input"
className="PictureSelector__input hidden"
data-testid="PictureSelector__input-picture_selector_test"
name="picture_selector_test"
onChange={[Function]}
Expand Down Expand Up @@ -47,7 +47,7 @@ exports[`components/picture_selector should match snapshot, existing picture pro
<input
accept=".jpg,.png,.bmp"
aria-hidden={true}
className="PictureSelector__input"
className="PictureSelector__input hidden"
data-testid="PictureSelector__input-picture_selector_test"
name="picture_selector_test"
onChange={[Function]}
Expand Down Expand Up @@ -87,7 +87,7 @@ exports[`components/picture_selector should match snapshot, no picture selected
<input
accept=".jpg,.png,.bmp"
aria-hidden={true}
className="PictureSelector__input"
className="PictureSelector__input hidden"
data-testid="PictureSelector__input-picture_selector_test"
name="picture_selector_test"
onChange={[Function]}
Expand Down
2 changes: 1 addition & 1 deletion components/picture_selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const PictureSelector: React.FC<Props> = (props: Props) => {
name={name}
data-testid={`PictureSelector__input-${name}`}
ref={inputRef}
className='PictureSelector__input'
className='PictureSelector__input hidden'
accept='.jpg,.png,.bmp'
type='file'
onChange={handleFileChange}
Expand Down