Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 28 additions & 27 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,33 +1,34 @@
import type { Preview } from "@storybook/react";
import type {Preview} from "@storybook/react";

const preview: Preview = {
parameters: {
backgrounds: {
default: 'code0',
values: [
{name: 'code0', value: '#030014'}
],
parameters: {
backgrounds: {
default: 'code0',
values: [
{name: 'code0', value: '#030014'}
],
},
layout: 'centered',
actions: {argTypesRegex: "^on[A-Z].*"},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
a11y: {
// Optional selector to inspect
element: '#storybook-root',
config: {
rules: [
{id: 'landmark-one-main', enabled: false}, // not relevant to single components
{id: 'page-has-heading-one', enabled: false}, // not relevant to single components
{id: 'region', enabled: false}, // not relevant to single components
{id: 'aria-allowed-attr', enabled: false} // disable all aria checks
],
},
},
},
layout: 'centered',
actions: { argTypesRegex: "^on[A-Z].*" },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
a11y: {
// Optional selector to inspect
element: '#storybook-root',
config: {
rules: [
{ id: 'landmark-one-main', enabled: false }, // not relevant to single components
{ id: 'page-has-heading-one', enabled: false }, // not relevant to single components
{ id: 'region', enabled: false }, // not relevant to single components
],
},
},
},
};

export default preview;
Binary file added __snapshots__/popover--popover-test-chromium.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __snapshots__/popover--popover-test-firefox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added __snapshots__/popover--popover-test-webkit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading