Skip to content

Commit 8b051ce

Browse files
committed
fixed toastify css import order
1 parent 5bed176 commit 8b051ce

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

library/src/components/ToastFlag.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,9 @@ import React, { CSSProperties } from "react"
33
import { CloseButtonProps, toast } from "react-toastify"
44
import type { ToastOptions } from "react-toastify"
55

6-
import { N0 } from "@atlaskit/theme/colors"
7-
8-
import "react-toastify/dist/ReactToastify.css"
6+
//import "react-toastify/dist/ReactToastify.css" -> needs to be imported in your app, probably before tailwindcss to make overrides work
97
import CrossIcon from "@atlaskit/icon/glyph/cross"
108

11-
import { token } from "@atlaskit/tokens"
129
import { Flag, FlagActionType, FlagProps } from "./Flag"
1310
import {
1411
getAppearanceColors,
@@ -48,7 +45,7 @@ export function showFlagExtended({
4845
invert = false,
4946
...props
5047
}: ToastFlagProps) {
51-
const { secondaryColor, primaryColor, textColor } = getAppearanceColors(
48+
const { secondaryColor, textColor } = getAppearanceColors(
5249
invert,
5350
appearance,
5451
)

showcase/src/styles.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@import "react-toastify/dist/ReactToastify.css";
2+
13
@tailwind base;
24
@tailwind components;
35
@tailwind utilities;

0 commit comments

Comments
 (0)