Skip to content

Commit

Permalink
🐛 resolve css name conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Nov 22, 2023
1 parent d4e03e1 commit 550b83a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions website/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,17 @@ export default function Modal({
useEffect(onFadeIn, []);

return (
<div className={clsx("modal-root", className)}>
<div className={clsx("nb-modal-root", className)}>
<div
className={clsx("modal-backdrop", transitionClass)}
className={clsx("nb-modal-backdrop", transitionClass)}
onTransitionEnd={onTransitionEnd}
onClick={() => backdropExit && onFadeOut()}
/>
<div className={clsx("modal-container", transitionClass)}>
<div className={clsx("nb-modal-container", transitionClass)}>
<div className="card bg-base-100 shadow-xl">
<div className="card-body">
{!useCustomTitle && (
<div className="modal-title">
<div className="nb-modal-title">
{title}
<div className="card-actions ml-auto">
<button className="btn btn-square btn-sm" onClick={onFadeOut}>
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/Modal/styles.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.modal {
.nb-modal {
&-title {
@apply flex items-center font-bold;
}
Expand Down

0 comments on commit 550b83a

Please sign in to comment.