Skip to content

Commit

Permalink
fix: added indicators to fileuploader (carbon-design-system#15274)
Browse files Browse the repository at this point in the history
  • Loading branch information
guidari authored and danoro96 committed Jan 18, 2024
1 parent d09ba49 commit f17f6ae
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/react/src/components/FileUploader/FileUploader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,15 @@ export default class FileUploader extends React.Component<
<div className={classes} {...other}>
{!labelTitle ? null : (
<Text
as="p"
as="h3"
className={getHelperLabelClasses(`${prefix}--file--label`)}>
{labelTitle}
</Text>
)}
<Text
as="p"
className={getHelperLabelClasses(`${prefix}--label-description`)}>
className={getHelperLabelClasses(`${prefix}--label-description`)}
id="description">
{labelDescription}
</Text>
<FileUploaderButton
Expand All @@ -309,6 +310,7 @@ export default class FileUploader extends React.Component<
accept={accept}
name={name}
size={size}
aria-describedby="description"
/>
<div className={`${prefix}--file-container`}>
{this.state.filenames.length === 0
Expand Down

0 comments on commit f17f6ae

Please sign in to comment.