Skip to content

Commit

Permalink
21551: Corrected inconsistent button coloring in FeatureAttributes co…
Browse files Browse the repository at this point in the history
…mponents (#18)

- npx storybook@latest upgrade
- Refactored viewport controls to use viewportStoryGlobals
  • Loading branch information
lancegliser authored Sep 18, 2024
1 parent 5e2367d commit 6653f84
Show file tree
Hide file tree
Showing 6 changed files with 589 additions and 4,275 deletions.
3 changes: 3 additions & 0 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ const config: StorybookConfig = {
},
docs: {},
// staticDirs: ["../public"], //👈 Configures the static asset folder in Storybook
features: {
viewportStoryGlobals: true,
},
refs: {
"react-tailwind-flowbite-components": {
title: "Howso components",
Expand Down
12 changes: 7 additions & 5 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import React, { Suspense } from "react";
import { standardFlowbiteTheme } from "@howso/react-tailwind-flowbite-components";
import type { Preview, StoryFn } from "@storybook/react";
import { Await, RouterProvider, createMemoryRouter } from "react-router-dom";
import { Flowbite, ThemeMode } from "flowbite-react";
import i18n from "./i18next";
import React, { Suspense } from "react";
import { useTranslation } from "react-i18next";
import { standardFlowbiteTheme } from "@howso/react-tailwind-flowbite-components";
import { Await, RouterProvider, createMemoryRouter } from "react-router-dom";
import i18n from "./i18next";
// CSS
// import "@fontsource/inter";
import "@fontsource/inter/500.css";
Expand Down Expand Up @@ -39,7 +39,9 @@ const preview: Preview = {
},
},
i18n,
viewport: { defaultViewport: undefined },
initialGlobals: {
viewport: { value: undefined },
},
},
decorators: [
(Story: StoryFn, context) => {
Expand Down
Loading

0 comments on commit 6653f84

Please sign in to comment.