Skip to content

Commit 1695f29

Browse files
authored
Merge pull request #1999 from dxc-technology/rarrojolopez/file-input-delete-styles
Fix file input delete styles
2 parents 4c0fd86 + 02000e0 commit 1695f29

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/src/file-input/FileItem.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ const FileItem = ({
5656
<DxcIcon icon="close" />
5757
</DeleteFileAction>
5858
</DxcFlex>
59-
{error && !singleFileMode && <ErrorMessage role="alert" aria-live="assertive">{error}</ErrorMessage>}
59+
{error && !singleFileMode && (
60+
<ErrorMessage role="alert" aria-live="assertive">
61+
{error}
62+
</ErrorMessage>
63+
)}
6064
</FileItemContent>
6165
</MainContainer>
6266
</ThemeProvider>
@@ -145,6 +149,7 @@ const DeleteFileAction = styled.button`
145149
display: flex;
146150
flex-wrap: wrap;
147151
align-content: center;
152+
justify-content: center;
148153
height: 24px;
149154
width: 24px;
150155
font-size: 1rem;

0 commit comments

Comments
 (0)