Skip to content

Commit

Permalink
chore: RightFixedNoteのVRT用Storyを追加 (#4042)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomof authored Nov 28, 2023
1 parent 420c8c0 commit b236718
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions src/components/RightFixedNote/VRTRightFixedNote.stories.tsx
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;
`

0 comments on commit b236718

Please sign in to comment.