![](https://s.togetter.com/static/web/img/placeholder.gif)
説明だけでは解りにくいかもしれないので、VoiceOverで読み上げてみよう。 #okajs
2016-11-19 15:18:41![](https://s.togetter.com/static/web/img/placeholder.gif)
WAI-ARIA の基礎知識 website-usability.info/2014/04/entry_… #okajs
2016-11-19 15:19:46![](https://s.togetter.com/static/web/img/placeholder.gif)
role="button"をつけておくと、aタグやspanタグでもVoiceOverはボタンとして認識してくれる。 #okajs
2016-11-19 15:26:24![](https://s.togetter.com/static/web/img/placeholder.gif)
role="button"は便利。でも基本はbutton要素を使いましょう。 #okajs
2016-11-19 15:27:53![](https://s.togetter.com/static/web/img/placeholder.gif)
role属性だけではフォーカスが当たらないからtabindexつけましょう。 #okajs
2016-11-19 15:28:50![](https://s.togetter.com/static/web/img/placeholder.gif)
リンクやボタンはタブでフォーカスするけれど、spanタグとかは無視される。そういう場合はtabindex属性を付けておくとよい。 #okajs
2016-11-19 15:30:09![](https://s.togetter.com/static/web/img/placeholder.gif)
そうかぁ〜視覚でイベントのコントロールとわかるようにしても、ブラウザとかUserAgentは理解できんから、tabindex=0でも指定しとかんとおえんのかぁ〜 #okajs
2016-11-19 15:30:12![](https://s.togetter.com/static/web/img/placeholder.gif)
わかりやすい「WAI-ARIA 1.0」仕様解説書 大藤 幹 amazon.co.jp/dp/B016XKNV9M/… #okajs
2016-11-19 15:36:46![](https://s.togetter.com/static/web/img/placeholder.gif)
roleは大きく4つに分類され61種類ある 抽象ロール、ウィジェットロール、文書構造ロール、ランドマークロール #okajs
2016-11-19 15:37:30![](https://s.togetter.com/static/web/img/placeholder.gif)
コーディングWebアクセシビリティ - WAI-ARIAで実現するマルチデバイス環境のWebアプリケーション ヘイドン・ピカリング amazon.co.jp/dp/4862462669/… #okajs
2016-11-19 15:38:16![](https://s.togetter.com/static/web/img/placeholder.gif)
[aria-hidden="true"] { display: none; }を定義しておくと、aria-hidden属性を変更するだけで表示・非表示ができる。is-hiddenとかのクラス作らなくてよくなる。 #okajs
2016-11-19 15:39:49![](https://s.togetter.com/static/web/img/placeholder.gif)
aria-hidden="true"だと、画面上に表示があったとしても、VoiceOverで認識しなくなる。 #okajs
2016-11-19 15:42:35![](https://s.togetter.com/static/web/img/placeholder.gif)
「「is-visible」「is-hidden」などとクラスを作成することはこれまでは常でしたが、WAI-ARIAを利用すれば、プロジェクトやチームで独自にルールを作ることなく、W3Cによって策定された仕様に則った形で進めることができます。」 #okajs
2016-11-19 15:43:57![](https://s.togetter.com/static/web/img/placeholder.gif)
視覚的に「見える/見えない」とデータとして「有効/無効」みたいな考え方を整理しておく必要があるな #okajs
2016-11-19 15:44:06