Skip to content

Commit

Permalink
🐛 Removed psuedo-state plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
KenAJoh committed Nov 18, 2024
1 parent 57356ea commit f8dcd96
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
6 changes: 5 additions & 1 deletion .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ export default {
},
},
},
"storybook-addon-pseudo-states",
/**
* https://github.com/chromaui/storybook-addon-pseudo-states/issues/101
* Currently disabled to avoid interference with darkmode update
*/
/* "storybook-addon-pseudo-states", */
],
framework: {
name: "@storybook/react-vite",
Expand Down
15 changes: 9 additions & 6 deletions @navikt/core/react/src/link/stories/link.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ export const Chromatic = () => (
);
Chromatic.parameters = { chromatic: { disable: false } };

export const ChromaticHover = () => (
/* See .storybook/main.ts comment for explanation */
/* export const ChromaticHover = () => (
<>
<h2>With icon</h2>
<LinkWithIcon />
Expand All @@ -245,9 +246,10 @@ export const ChromaticHover = () => (
ChromaticHover.parameters = {
chromatic: { disable: false },
pseudo: { hover: true },
};
}; */

export const ChromaticFocusVisible = () => (
/* See .storybook/main.ts comment for explanation */
/* export const ChromaticFocusVisible = () => (
<>
<h2>With icon</h2>
<LinkWithIcon />
Expand All @@ -273,9 +275,10 @@ export const ChromaticFocusVisible = () => (
ChromaticFocusVisible.parameters = {
chromatic: { disable: false },
pseudo: { focusVisible: true },
};
}; */

export const ChromaticActive = () => (
/* See .storybook/main.ts comment for explanation */
/* export const ChromaticActive = () => (
<>
<h2>With icon</h2>
<LinkWithIcon />
Expand All @@ -301,4 +304,4 @@ export const ChromaticActive = () => (
ChromaticActive.parameters = {
chromatic: { disable: false },
pseudo: { active: true },
};
}; */

0 comments on commit f8dcd96

Please sign in to comment.