Skip to content

Commit

Permalink
fix(fileupload): use default readonly text input instead of plain (#9387
Browse files Browse the repository at this point in the history
)

* fix(fileupload): use default readonly text input instead of plain

* chore(build): snaps
  • Loading branch information
mcoker authored Jul 20, 2023
1 parent 84f2a1e commit cc8f777
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export const FileUploadField: React.FunctionComponent<FileUploadFieldProps> = ({
<InputGroup>
<InputGroupItem isFill>
<TextInput
readOnlyVariant="plain" // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
readOnlyVariant="default" // Always read-only regardless of isReadOnly prop (which is just for the TextArea)
isDisabled={isDisabled}
id={`${id}-filename`}
name={`${id}-filename`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ exports[`simple fileupload 1`] = `
class="pf-v5-c-input-group__item pf-m-fill"
>
<span
class="pf-v5-c-form-control pf-m-readonly pf-m-plain"
class="pf-v5-c-form-control pf-m-readonly"
>
<input
aria-describedby="simple-text-file-browse-button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ exports[`simple fileuploadfield 1`] = `
class="pf-v5-c-input-group__item pf-m-fill"
>
<span
class="pf-v5-c-form-control pf-m-readonly pf-m-plain"
class="pf-v5-c-form-control pf-m-readonly"
>
<input
aria-describedby="custom-file-upload-browse-button"
Expand Down

0 comments on commit cc8f777

Please sign in to comment.