Skip to content
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

feat(DefinitionList): Composition できるように修正 #5094

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

uknmr
Copy link
Collaborator

@uknmr uknmr commented Nov 11, 2024

関連URL

概要

DefinitionList > DefinitionListItem と Composite できるように修正しました。
ついでに #4949 の方針に沿って、Story を見直しました。

変更内容

確認方法

Storybook や Chromatic で確認してください。

@uknmr uknmr requested a review from a team as a code owner November 11, 2024 08:10
Copy link

pkg-pr-new bot commented Nov 11, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/kufu/smarthr-ui@5094

commit: 0d54cb2

@AtsushiM
Copy link
Member

@uknmr compositionパターンにするなら dt,dd,dd,... のようにdt一つに対して複数のdd紐づけられる、もしくはdt複数に対して一つのddみたいなパターンも対応できるようにする必要はなさそうですか? (あんまりなさそうとはいえ、htmlの仕様上はできるわけだし...)
https://developer.mozilla.org/ja/docs/Web/HTML/Element/dl

@uknmr
Copy link
Collaborator Author

uknmr commented Nov 12, 2024

@AtsushiM 装飾として dt と dd が一対一になってしまっているので、需要次第だと思いますが需要もここ5年はないので需要が高まってきたら検討で良さそう。

Copy link
Member

@AtsushiM AtsushiM left a comment

Choose a reason for hiding this comment

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

:gogo:

@uknmr uknmr merged commit e888f0a into master Nov 12, 2024
12 checks passed
@uknmr uknmr deleted the improve-DefinitionList-composition branch November 12, 2024 04:37
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