-
-
Notifications
You must be signed in to change notification settings - Fork 3
컴포넌트 접근성 개선(aria-invalid, aria-required) #724
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,35 +41,43 @@ export const WithDefaultValue: Story = { | |
| }; | ||
|
|
||
| export const Orientation: Story = { | ||
| render: () => { | ||
| render: (args) => { | ||
| return ( | ||
| <div | ||
| className={css({ display: "flex", flexDirection: "column", gap: "32" })} | ||
| > | ||
| <RadioGroup | ||
| {...args} | ||
| name="vertical-orientation" | ||
| label="세로 방향 (Vertical)" | ||
| orientation="vertical" | ||
| defaultValue="apple" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="horizontal-orientation" | ||
| label="가로 방향 (Horizontal)" | ||
| orientation="horizontal" | ||
| defaultValue="banana" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
| </div> | ||
| ); | ||
| }, | ||
| argTypes: { | ||
| name: { | ||
| control: false, | ||
| }, | ||
| label: { | ||
| control: false, | ||
| }, | ||
| orientation: { | ||
| control: false, | ||
| }, | ||
| defaultValue: { | ||
| control: false, | ||
| }, | ||
| }, | ||
|
Comment on lines
+67
to
+80
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💯 다른 팀원들도 배울 수 있도록 컨벤션 문서에 요런 스토리 작성 관련 모범 관례나 팁을 추가해주셔도 좋을 것 같습니다.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 컨벤션 문서에 내용 추가했습니다. https://github.com/DaleStudy/daleui/wiki/Conventions#%EC%8A%A4%ED%86%A0%EB%A6%AC
|
||
| }; | ||
|
|
||
| export const GroupDisabled: Story = { | ||
|
|
@@ -115,79 +123,69 @@ export const ItemDisabled: Story = { | |
| }; | ||
|
|
||
| export const Tones: Story = { | ||
| render: () => { | ||
| render: (args) => { | ||
| return ( | ||
| <div | ||
| className={css({ display: "flex", flexDirection: "column", gap: "32" })} | ||
| > | ||
| <RadioGroup | ||
| {...args} | ||
| name="neutral-tone" | ||
| label="중립 색조 (Neutral)" | ||
| defaultValue="apple" | ||
| tone="neutral" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="brand-tone" | ||
| label="브랜드 색조 (Brand)" | ||
| defaultValue="apple" | ||
| tone="brand" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="danger-tone" | ||
| label="위험 색조 (Danger)" | ||
| defaultValue="apple" | ||
| tone="danger" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="warning-tone" | ||
| label="경고 색조 (Warning)" | ||
| defaultValue="apple" | ||
| tone="warning" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="success-tone" | ||
| label="성공 색조 (Success)" | ||
| defaultValue="apple" | ||
| tone="success" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
|
|
||
| <RadioGroup | ||
| {...args} | ||
| name="info-tone" | ||
| label="정보 색조 (Info)" | ||
| defaultValue="apple" | ||
| tone="info" | ||
| > | ||
| <Radio value="apple">사과</Radio> | ||
| <Radio value="banana">바나나</Radio> | ||
| <Radio value="orange">오렌지</Radio> | ||
| </RadioGroup> | ||
| /> | ||
| </div> | ||
| ); | ||
| }, | ||
| argTypes: { | ||
| name: { | ||
| control: false, | ||
| }, | ||
| label: { | ||
| control: false, | ||
| }, | ||
| tone: { | ||
| control: false, | ||
| }, | ||
| }, | ||
| args: { | ||
| defaultValue: "apple", | ||
| }, | ||
| }; | ||
|
|
||
| export const Controlled = () => { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
나이스 캐치!