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

定義リストのブロックが欲しい #505

Open
sysbird opened this issue May 14, 2021 · 11 comments
Open

定義リストのブロックが欲しい #505

sysbird opened this issue May 14, 2021 · 11 comments
Labels
enhancement New feature or request

Comments

@sysbird
Copy link
Member

sysbird commented May 14, 2021

dd dlです、
私はよく使うので、下記を利用しています
https://ja.wordpress.org/plugins/simple-definition-list-blocks/

商品スペックを書くときなど、tableよりは勝手がよいかなと思います
でもデフォルトにないってことは、あまり使われないのでしょうか?

例↓↓↓スマホ時は縦にならびます
dl

@sysbird sysbird added the enhancement New feature or request label May 14, 2021
@kurudrive
Copy link
Member

コアが検討してるらしいのでコアのissueとかがどういう状況なのか要確認

@drill-lancer
Copy link
Member

コアの状況
WordPress/gutenberg#4880

@miminari
Copy link
Contributor

miminari commented May 24, 2021

@drill-lancer さん、リンクありがとうございます。
そうそう、エラさんが去年の8月から取り組んでまた出来てないという時点で察するしか無い感じですが、難点とヒントはPRの最後のコメントに集約されています

WordPress/gutenberg#20760 (comment)

Currently both the WHATWG and the W3C HTML5 standards support grouping dt and dd tags using the div element (link to the issue were it was first discussed), which is useful on several cases where a single concept uses more than one dt or dd tag and stuff like CSS and semantics becomes tricky. I think that would be nice to automatically wrap groups of x number of dt followed by x number of dd in div tags, even if in a list the dt and dd elements aren't directly followed by dt or dd slibings respectively.

エラさんならいずれ解決するとは思いますが、個人的にはコアの対応を待ったほうが良い気配がします。

@miminari
Copy link
Contributor

あ、問題点的には
WordPress/gutenberg#20760 (review)
が一番わかりやすいかもです

@drill-lancer
Copy link
Member

やっぱりこれで悩んでるっぽいですね。
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl#multiple_terms_single_description

私がやるなら下記のような感じの実装にすると思います。

dl ブロック

div ブロック
ト dt ブロック
ト dd ブロック

@miminari
Copy link
Contributor

や、悩んでいるのは、そこだけじゃない感じですね…

@miminari
Copy link
Contributor

これがクローズしてたら挑戦してみてもいいですが、オープンのままということはやる余地があるということなので、手を出さない方が良いと個人的には思います。

@miminari
Copy link
Contributor

もしくはコアのブロックのほうにコミットしたほうが良いです。

@drill-lancer
Copy link
Member

一旦保留ということでそれっぽいボードに移しておきます。

@miminari
Copy link
Contributor

@drill-lancer ありがとうございます!私のほうでも今後の動向ウォッチしておきます。

@sysbird
Copy link
Member Author

sysbird commented May 24, 2021

そのような経緯があるのですね、
ご検討、情報ありがとうございます!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants