Skip to content

disclosureを追加#91

Open
itoh4126 wants to merge 8 commits intomainfrom
add-disclosure-component
Open

disclosureを追加#91
itoh4126 wants to merge 8 commits intomainfrom
add-disclosure-component

Conversation

@itoh4126
Copy link
Copy Markdown
Collaborator

disclosureコンポーネントを追加します。マークアップはdetails/summary要素を想定していますが、React-ARIAなどライブラリの活用も見据えています。
packages/cellに準拠したsize・densityプロパティを備えています。

details/summary要素を使ったdisclosureコンポーネントを追加。
cellのmixinに準拠したsize・densityプロパティを持ち、hover/focus時のインタラクションスタイルもadapter関数を使って実装。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@itoh4126 itoh4126 requested a review from a team as a code owner March 12, 2026 02:18
itoh4126 and others added 2 commits March 12, 2026 12:13
stylelint-config-rational-order に従い、list-style を background-color より前に移動。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@itoh4126 itoh4126 marked this pull request as draft March 12, 2026 05:45
@itoh4126 itoh4126 marked this pull request as ready for review March 31, 2026 06:07
Copy link
Copy Markdown

@yamaki0405 yamaki0405 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ご対応ありがとうございます。
1つコメントをしましたが、クリティカルではないのでapproveしています。

Comment on lines +40 to +43
<Icon
className='_icon'
icon='chevron_right'
/>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

aria-hidden="true"をつけてもいいのかなって思いました。

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yamaki0405
Iconコンポーネントにaria-hiddenのpropsを追加すればできるので、このPRでは単にDisclosureの追加に留めて、別でIconコンポーネントへのprops追加(およびaria-hiddenを付与するべき他のStorybook内コンポーネントの精査・追加)しましょうかね

# Conflicts:
#	package-lock.json
#	packages/components-web/package.json
#	packages/stories-web/package.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants