Skip to content

Commit

Permalink
fixed toastify css import order
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-wishes committed Oct 4, 2023
1 parent 5bed176 commit 8b051ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 2 additions & 5 deletions library/src/components/ToastFlag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,9 @@ import React, { CSSProperties } from "react"
import { CloseButtonProps, toast } from "react-toastify"
import type { ToastOptions } from "react-toastify"

import { N0 } from "@atlaskit/theme/colors"

import "react-toastify/dist/ReactToastify.css"
//import "react-toastify/dist/ReactToastify.css" -> needs to be imported in your app, probably before tailwindcss to make overrides work
import CrossIcon from "@atlaskit/icon/glyph/cross"

import { token } from "@atlaskit/tokens"
import { Flag, FlagActionType, FlagProps } from "./Flag"
import {
getAppearanceColors,
Expand Down Expand Up @@ -48,7 +45,7 @@ export function showFlagExtended({
invert = false,
...props
}: ToastFlagProps) {
const { secondaryColor, primaryColor, textColor } = getAppearanceColors(
const { secondaryColor, textColor } = getAppearanceColors(
invert,
appearance,
)
Expand Down
2 changes: 2 additions & 0 deletions showcase/src/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import "react-toastify/dist/ReactToastify.css";

@tailwind base;
@tailwind components;
@tailwind utilities;

0 comments on commit 8b051ce

Please sign in to comment.