-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: RightFixedNoteのVRT用Storyを追加 (#4042)
- Loading branch information
Showing
1 changed file
with
62 additions
and
0 deletions.
There are no files selected for viewing
62 changes: 62 additions & 0 deletions
62
src/components/RightFixedNote/VRTRightFixedNote.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import { StoryFn } from '@storybook/react' | ||
import React from 'react' | ||
import styled from 'styled-components' | ||
|
||
import { InformationPanel } from '../InformationPanel' | ||
|
||
import { RightFixedNote } from './RightFixedNote' | ||
import { All } from './RightFixedNote.stories' | ||
|
||
export default { | ||
title: 'Data Display(データ表示)/RightFixedNote', | ||
component: RightFixedNote, | ||
parameters: { | ||
withTheming: true, | ||
}, | ||
} | ||
|
||
export const VRTHover: StoryFn = () => ( | ||
<> | ||
<VRTInformationPanel title="VRT 用の Story です" togglable={false}> | ||
hoverの状態で表示されます | ||
</VRTInformationPanel> | ||
<All /> | ||
</> | ||
) | ||
VRTHover.parameters = { | ||
controls: { hideNoControlsWarning: true }, | ||
pseudo: { | ||
hover: ['button'], | ||
}, | ||
} | ||
|
||
export const VRTFocusVisible: StoryFn = () => ( | ||
<> | ||
<VRTInformationPanel title="VRT 用の Story です" togglable={false}> | ||
focusの状態で表示されます | ||
</VRTInformationPanel> | ||
<All /> | ||
</> | ||
) | ||
VRTFocusVisible.parameters = { | ||
controls: { hideNoControlsWarning: true }, | ||
pseudo: { | ||
focusVisible: ['button', 'textarea'], | ||
}, | ||
} | ||
|
||
export const VRTForcedColors: StoryFn = () => ( | ||
<> | ||
<VRTInformationPanel title="VRT 用の Story です" togglable={false}> | ||
Chromatic 上では強制カラーモードで表示されます | ||
</VRTInformationPanel> | ||
<All /> | ||
</> | ||
) | ||
VRTForcedColors.parameters = { | ||
chromatic: { forcedColors: 'active' }, | ||
} | ||
|
||
const VRTInformationPanel = styled(InformationPanel)` | ||
margin-bottom: 24px; | ||
` |