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

セマンティックなマークアップ (divを多用しない&ARIAを活用する) #39

Closed
knokmki612 opened this issue Sep 8, 2021 · 4 comments · Fixed by #162
Closed
Labels
documentation Improvements or additions to documentation

Comments

@knokmki612
Copy link
Member

現在のスタイルの設計方針として

BEMとの比較

  • Block: Component
  • Element: クラスとしては定義しない。疑似要素、タグセレクタなどによって表現する
  • Modifier: クラスとしては定義しない。Utilityとの組み合わせで表現するか、異なるComponentとして表現する

となっている。

この方針には .is-active のようなインタラクティブな要素で用いるModifierがカバーできないという問題点がある。

ARIAで提供されているロールの一部は aria-expanded などのような属性が用意されているので、それを使用して回避する。

@Hidetaro7
Copy link
Contributor

@Hidetaro7
Copy link
Contributor

@Hidetaro7
Copy link
Contributor

ここに日本語訳があって使用例もある
https://waic.jp/docs/2019/NOTE-wai-aria-practices-1.1-20190207/

@knokmki612 knokmki612 added the documentation Improvements or additions to documentation label Oct 13, 2021
@knokmki612
Copy link
Member Author

#82 のドキュメンテーションにこのissueの内容を反映することをもってこのissueを完了する

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants