Skip to content

Commit

Permalink
fix: toast event
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicleo committed Oct 16, 2023
1 parent e6149a1 commit f0d5bf6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/zarm/src/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const Toast = React.forwardRef<HTMLDivElement, ToastProps>((props, ref) => {
}}
maskColor={maskColor}
lockScroll={!maskClickable}
className={bem('wrapper')}
{...rest}
>
<div
Expand Down
6 changes: 6 additions & 0 deletions packages/zarm/src/toast/style/component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,18 @@
align-items: center;
display: flex;

@include e(wrapper) {
pointer-events: none;
}

@include m(text) {
padding: var(--za-padding-v-md) var(--za-padding-h-md);
pointer-events: all;
}

@include m(icon) {
padding: 15px;
pointer-events: all;

@include e(text) {
min-width: 70px;
Expand Down

0 comments on commit f0d5bf6

Please sign in to comment.