Skip to content

Commit

Permalink
fix: Form.Upload's unexpected error outline Occlusion
Browse files Browse the repository at this point in the history
  • Loading branch information
YannLynn committed Aug 26, 2024
1 parent 7648406 commit 8063f28
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/semi-foundation/upload/upload.scss
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ $module: #{$prefix}-upload;
}

&-error {
outline: 1px solid $color-upload_picture_file_card_error-border;
border: 1px solid $color-upload_picture_file_card_error-border;
}

&:hover {
Expand Down
15 changes: 14 additions & 1 deletion packages/semi-ui/upload/_story/upload.stories.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1323,4 +1323,17 @@ export const Unmount = () => {
<button onClick={toggle}>toggle upload mount</button>
</>
);
};
};

export const fix2448 = () => {
let action = 'http://xxx';
return (
<>
<Form>
<Form.Upload action={action} listType="picture" accept="image/*" multiple >
<IconPlus size="extra-large" />
</Form.Upload>
</Form>
</>
);
}

0 comments on commit 8063f28

Please sign in to comment.