Skip to content

Commit

Permalink
feat(hovered-color): set max-width to 1400px
Browse files Browse the repository at this point in the history
  • Loading branch information
yangwooseong committed Aug 27, 2024
1 parent 97fe0e2 commit 6a8c477
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions packages/bezier-react/src/stories/alpha-color.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { Markdown, Meta, DocsStory } from '@storybook/blocks'
import { tokens } from '@channel.io/bezier-tokens/alpha'
import { useLayoutEffect } from 'react'

import {
LightThemeProvider,
Expand Down Expand Up @@ -63,8 +64,12 @@ export const Color = ({ isHoveredColor, name, value, reference }) => {
)
}

export const Primary = () => (
<HStack>
export const Primary = () => {
useLayoutEffect(() => {
document.querySelector('.sbdocs-content').style.maxWidth = '1400px'
}, [])

return (<HStack>

<VStack style={{ flex: 1, backgroundColor: 'var(--alpha-color-surface-normal)' }} padding={0}>
{Object.entries(tokens.global.color).map(([key, { value, ref }]) => (
Expand Down Expand Up @@ -131,8 +136,8 @@ export const Primary = () => (
</VStack>
</DarkThemeProvider>

</HStack>
)
</HStack>)
}

# Color

Expand Down

0 comments on commit 6a8c477

Please sign in to comment.