From 9feb0b0c8e6d6bd980d81c223847d93ed4f7a222 Mon Sep 17 00:00:00 2001 From: Alexandra Date: Tue, 21 Nov 2023 12:28:13 +0100 Subject: [PATCH] chore: fix "not a tailwind css class" warning in components fix "not a tailwind css class" warning in orbit components --- docs/src/components/BrandedTile.tsx | 1 - docs/src/components/Head/index.tsx | 6 +++--- docs/src/components/VisualList.tsx | 2 +- packages/orbit-components/.eslintrc.cjs | 3 ++- .../src/BadgeList/BadgeListItem/index.tsx | 2 +- packages/orbit-components/src/Checkbox/index.tsx | 2 +- .../src/ChoiceGroup/components/Feedback.tsx | 2 +- packages/orbit-components/src/Drawer/index.tsx | 7 +++---- packages/orbit-components/src/InputField/index.tsx | 4 ++-- packages/orbit-components/src/ListChoice/index.tsx | 2 +- packages/orbit-components/src/Loading/index.tsx | 2 +- packages/orbit-components/src/Modal/ModalHeader/index.tsx | 2 +- .../orbit-components/src/Modal/ModalSection/index.tsx | 6 +++--- packages/orbit-components/src/Modal/index.tsx | 8 ++++---- packages/orbit-components/src/NavigationBar/index.tsx | 2 +- packages/orbit-components/src/Radio/index.tsx | 4 ++-- packages/orbit-components/src/Select/index.tsx | 4 ++-- packages/orbit-components/src/Textarea/index.tsx | 3 +-- packages/orbit-components/src/Toast/ToastMessage.tsx | 2 +- .../src/primitives/TooltipPrimitive/index.tsx | 2 +- 20 files changed, 32 insertions(+), 34 deletions(-) diff --git a/docs/src/components/BrandedTile.tsx b/docs/src/components/BrandedTile.tsx index 0ac2a0bf41..32ddd08055 100644 --- a/docs/src/components/BrandedTile.tsx +++ b/docs/src/components/BrandedTile.tsx @@ -108,7 +108,6 @@ export default function BrandedTile({ return ( - + diff --git a/docs/src/components/VisualList.tsx b/docs/src/components/VisualList.tsx index 978f0e80d0..c5cd27fb54 100644 --- a/docs/src/components/VisualList.tsx +++ b/docs/src/components/VisualList.tsx @@ -85,7 +85,7 @@ const Visual = ({ {visualName} - {exampleCode(visualName)} + {exampleCode(visualName)} {actions(visualObject, copied, copy)} diff --git a/packages/orbit-components/.eslintrc.cjs b/packages/orbit-components/.eslintrc.cjs index 986b524a23..fdc81e54e4 100644 --- a/packages/orbit-components/.eslintrc.cjs +++ b/packages/orbit-components/.eslintrc.cjs @@ -1,4 +1,5 @@ const path = require("path"); +const orbitPreset = require("@kiwicom/orbit-tailwind-preset"); module.exports = { extends: ["../../.eslintrc.cjs", "plugin:storybook/recommended"], @@ -15,7 +16,7 @@ module.exports = { }, settings: { tailwindcss: { - config: "./tailwind.config.ts", + config: orbitPreset(), }, }, overrides: [ diff --git a/packages/orbit-components/src/BadgeList/BadgeListItem/index.tsx b/packages/orbit-components/src/BadgeList/BadgeListItem/index.tsx index 5028cfe493..76ae2c0a99 100644 --- a/packages/orbit-components/src/BadgeList/BadgeListItem/index.tsx +++ b/packages/orbit-components/src/BadgeList/BadgeListItem/index.tsx @@ -38,7 +38,7 @@ export const VerticalBadge = ({ return (