Skip to content

Commit

Permalink
chore(Upload): fix test warning (#4375)
Browse files Browse the repository at this point in the history
Removes the warning:
```
      Eufemia Icon required: A Tertiary Button requires an icon to be WCAG compliant in most cases, because variant tertiary has no underline.
      (Override this warning using icon={false}, or consider using one of the other variants) 
```
  • Loading branch information
langz authored Dec 9, 2024
1 parent 3e0a25f commit 752180a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ const UploadFileListCell = ({
) : (
<div className="dnb-upload__file-cell__text-container">
{onClick ? (
<Button variant="tertiary" onClick={onClick}>
<Button icon={false} variant="tertiary" onClick={onClick}>
{file.name}
</Button>
) : (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function Upload(props: Props) {
{getIcon(file)}
{onFileClick ? (
<Button
icon={false}
size="small"
variant="tertiary"
className={classnames('dnb-upload__file-cell__title')}
Expand Down

0 comments on commit 752180a

Please sign in to comment.