Skip to content

Commit

Permalink
feat: notifycation 新增样式命名区分 theme (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
honkinglin authored Jun 2, 2022
1 parent a8ff094 commit 53732ee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/notification/Notification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export const Notification = forwardRef<any, NotificationProps>((props, ref) => {
return (
<div
className={classNames(`${classPrefix}-notification`, {
[`${classPrefix}-notification-theme-${theme}`]: theme,
[`${classPrefix}-is-${theme}`]: theme,
})}
style={style}
>
Expand Down
26 changes: 13 additions & 13 deletions src/notification/__tests__/__snapshots__/Notification.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
exports[`base.jsx 1`] = `
<DocumentFragment>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -79,7 +79,7 @@ exports[`content.jsx 1`] = `
class="tdesign-demo-block-columns"
>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -118,7 +118,7 @@ exports[`content.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -161,7 +161,7 @@ exports[`content.jsx 1`] = `
exports[`footer.jsx 1`] = `
<DocumentFragment>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -226,7 +226,7 @@ exports[`icon.jsx 1`] = `
class="tdesign-demo-block-column"
>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -265,7 +265,7 @@ exports[`icon.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-error"
class="t-notification t-is-error"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -304,7 +304,7 @@ exports[`icon.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-warning"
class="t-notification t-is-warning"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -343,7 +343,7 @@ exports[`icon.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-success"
class="t-notification t-is-success"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -391,7 +391,7 @@ exports[`operation.jsx 1`] = `
class="tdesign-demo-block-column"
>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -446,7 +446,7 @@ exports[`operation.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -501,7 +501,7 @@ exports[`operation.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -563,7 +563,7 @@ exports[`operation.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down Expand Up @@ -633,7 +633,7 @@ exports[`operation.jsx 1`] = `
</div>
</div>
<div
class="t-notification t-notification-theme-info"
class="t-notification t-is-info"
>
<div
class="t-notification__icon"
Expand Down
Loading

0 comments on commit 53732ee

Please sign in to comment.