SlideShare a Scribd company logo
1 of 47
WAI-ARIA
– 이제는 실전이다ஸ–
지성봉 ஼멀더끙஽
콘텐츠연합플랫폼஼주஽ 퍼블리셔
‘예제로 살펴보는 WAIிARIAெ 집필진
들어가기에 앞서...
HTML의 목적
semantically describing
scientific documentsீ
HTML was primarily designed as a language for
What is Semantic
certain meanings
Elementsா attributesா and attribute values in HTML are defined to
have   ஼semantics஽ீ
Accessibillity - Semantic
integral to making contentஸon
the web accessible
Semantic information carried by HTML elements and attributes is
This is the base, starting here.
Why WAI-ARIA?
이게 최선입니까 확실해요
Listen Carefully
 WAI‐ARIA
Listen Carefully again
How to apply WAI-ARIA?
just Attributes
ARIA is a set of attributes that you can add to HTML elementsீ 
add any role
<input type="text"  role="combobox" >
add any property
<input type="text" role="conbobox"  aria­haspopup="true" >
add any state
<input type="text"  
    role="conbobox" aria­haspopup="true"  aria­expanded="false" >
4 rules of ARIA use
1. native HTML 요소/속성 사용
ARIA roleா stateா property를 추가하는 대신ா 
native HTML elementுattribute 
를 사용 
<!­­ If not possible to use the correct element, use this ­­> 
<span role="button">버튼</span> 
 
<!­­ If possible to use the correct element, use this ­­> 
<button type="button">버튼</button>  
 
<!­­ If not possible to use the correct element/attribute, use this ­­>
<input type="text" name="usrId" id="usrId" aria­label="아이디"> 
 
<!­­ If possible to use the correct element/attribute, use this ­­> 
<label for="usrId" class="hidden­accessible">아이디</label> 
<input type="text" name="usrId" id="usrId">
2. native semantic을 변경 금지
정말로 그래야 하는 것이 아닌 이상ா 
native semantic을 변경하지 말아야 함ீ 
<!­­ Do not do this ­­> 
<h1 role=button>heading button</h1> 
3. 키보드 사용 가능
clickா tapா dragா dropா slideா scroll 등의 user interaction은  
키보드로도 동등한 동작이 가능해야 함ீ 
<span role="button" aria­pressed="false">좋아요</span> 
/* 
 * required keyboard interaction 
 *  ­ button must be focusable 
 *  ­ when on focus the button, presssing Enter or Space key 
 *    activates (or deactivates) the button 
 *  ­ when the button activated, sets 'aria­pressed' to 'true',  
 *    otherwise 'false'. 
 */
4. visible focusable 요소를
의미를 없애거나 숨겨진 요소로 인식하지 않도록
키보드 접근이 가능한 요소가 인식될 수 없다면 오류 
<!­­ Do not do this ­­> 
<button type="button" role="presentation">좋아요</button> 
<button type="button" aira­hidden="true">좋아요</button>
appropriate
role / property / state
Role
use dialog role
use tablist / tab / tabpanel role
use alert role
 대화상자 UI를 만들고 있다면Ĭ
 탭 UI를 만들고 있다면Ĭ
 경고 알람 UI를 만들고 있다면Ĭ
property
use ariaிhaspopup=஺true஺
use ariaிlive=஺polite஺
use ariaிlabelledby=஺anyId஺
 컴포넌트가 하위 메뉴를 가진다면Ĭ
 실시간으로 변경되는 컴포넌트라면Ĭ
 개체에 label을 제공해야 한다면Ĭ
state
use ariaிhidden=஺true஺
use ariaிexpanded=஺true஺
use ariaிpressed=஺true஺
 컴포넌트가 숨김 상태라면Ĭ
 컴포넌트가 펼침 상태라면Ĭ
 컴포넌트가 눌림 상태라면Ĭ
keyboard interaction
checkbox
SPACE 키 : check 상태 변경
combobox
상ு하 방향키 : 목록 위ு아래 포커스 이동
ALT + 상ு하 방향키 : 목록 열기ு닫기
ESC 키 : 드롭다운 목록 닫기
ENTER 키 : 현재 항목 선택
PAGE UPுDOWN : 이전ு다음 페이지
஼httpsĬுுwwwீw3ீorgுTRுwaiிariaிpracticesு#button஽
대다수 UI의 키보드 인터랙션 요구사항이 W3C 문서에 기술
WAIிARIA Authoring Practices 1.1
실제 적용해 보자
  
஼httpsĬுுgooீglுllRSXO஽
예제로 살펴보는 WAIிARIA 사례집
  
஼httpsĬுுgithubீcomுmulder21cுariaிexamples஽
 WAIிARIA 사례집 수록 코드
஼httpsĬுுgithubீcomுniawaுARIA஽
 mulder21c஻s ARIAிEXAMPLES
어디까지나 기본은
semantic markup
WAIிARIA는 기본으로 부족한 것을
보완하기 위한 수단
reference URL
ARIA 1.0 Rec ஼W3C஽
ARIA in HTML WD ஼W3C஽
Notes on Using ARIA in HTML WD ஼W3C஽
WAIிARIA Authoring Practices 1.1 WD ஼W3C஽
WAIிARIA
httpsĬுுwwwீw3ீorgுTRுwaiிariaு
஼httpsĬுுwwwீw3ீorgுTRுwaiிariaு஽
httpsĬுுwwwீw3ீorgுTRுhtmlிaria
஼httpsĬுுwwwீw3ீorgுTRுhtmlிaria஽
httpsĬுுwwwீw3ீorgுTRுariaிinிhtmlு
஼httpsĬுுwwwீw3ீorgுTRுariaிinிhtmlு஽
httpsĬுுwwwீw3ீorgுTRுwaiிariaிpracticesி1ீ1ு
஼httpsĬுுwwwீw3ீorgுTRுwaiிariaிpracticesி1ீ1ு஽
httpĬுுseminar1505ீpublisherீname
஼httpĬுுseminar1505ீpublisherீname஽
Contact


publisher@publisherீname
githubீcomுmulder21cுariaிexamples

More Related Content

Viewers also liked

[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까
[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까
[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까Nts Nuli
 
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)Sungmin Jang
 
[하코사세미나] 한 시간 만에 배우는 Jquery
[하코사세미나] 한 시간 만에 배우는 Jquery[하코사세미나] 한 시간 만에 배우는 Jquery
[하코사세미나] 한 시간 만에 배우는 Jquery정석 양
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with DataSeth Familian
 
Scalable and Modular CSS FTW!
Scalable and Modular CSS FTW!Scalable and Modular CSS FTW!
Scalable and Modular CSS FTW!FITC
 
DevOn PT (Korea Web Accessibility Group)
DevOn PT (Korea Web Accessibility Group)DevOn PT (Korea Web Accessibility Group)
DevOn PT (Korea Web Accessibility Group)Sungmin Jang
 
Normas salas de informática
Normas salas de informáticaNormas salas de informática
Normas salas de informáticaAndrés Acosta
 
Programa del curso Desarrollo de Proyectos I
Programa del curso Desarrollo de Proyectos IPrograma del curso Desarrollo de Proyectos I
Programa del curso Desarrollo de Proyectos IArturo Llaca
 
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...NTF Väst
 
Hitachi set free system vrf Compressors system Designing 919825024651
Hitachi set   free system vrf Compressors system Designing 919825024651Hitachi set   free system vrf Compressors system Designing 919825024651
Hitachi set free system vrf Compressors system Designing 919825024651Sdsplit Split
 
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...NTF Väst
 
Infografía sobre competencias del Diseñador instruccional
Infografía sobre competencias del Diseñador instruccionalInfografía sobre competencias del Diseñador instruccional
Infografía sobre competencias del Diseñador instruccionalArturo Llaca
 
8 veiligheid en reflectiebespreking.2017-03-08
8   veiligheid en reflectiebespreking.2017-03-088   veiligheid en reflectiebespreking.2017-03-08
8 veiligheid en reflectiebespreking.2017-03-08Jan te Bokkel
 
Marie Nordén, NTF, Barn, Liv och Trafik 2017
Marie Nordén, NTF, Barn, Liv och Trafik 2017Marie Nordén, NTF, Barn, Liv och Trafik 2017
Marie Nordén, NTF, Barn, Liv och Trafik 2017NTF Väst
 
Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00Nicole Cordes
 

Viewers also liked (17)

[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까
[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까
[2016널리세미나] 스크립트를 통한 접근성은 어떻게 지켜야 할까
 
sungmin slide
sungmin slidesungmin slide
sungmin slide
 
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)
워드프레스로 웹 접근성 칭찬받기 (워드프레스 미트업)
 
[하코사세미나] 한 시간 만에 배우는 Jquery
[하코사세미나] 한 시간 만에 배우는 Jquery[하코사세미나] 한 시간 만에 배우는 Jquery
[하코사세미나] 한 시간 만에 배우는 Jquery
 
Visual Design with Data
Visual Design with DataVisual Design with Data
Visual Design with Data
 
Scalable and Modular CSS FTW!
Scalable and Modular CSS FTW!Scalable and Modular CSS FTW!
Scalable and Modular CSS FTW!
 
DevOn PT (Korea Web Accessibility Group)
DevOn PT (Korea Web Accessibility Group)DevOn PT (Korea Web Accessibility Group)
DevOn PT (Korea Web Accessibility Group)
 
Normas salas de informática
Normas salas de informáticaNormas salas de informática
Normas salas de informática
 
Programa del curso Desarrollo de Proyectos I
Programa del curso Desarrollo de Proyectos IPrograma del curso Desarrollo de Proyectos I
Programa del curso Desarrollo de Proyectos I
 
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...
Sara Eriksson, Västra Götalandsregionen, Barn, Liv och Trafik 2017, Regionala...
 
Hitachi set free system vrf Compressors system Designing 919825024651
Hitachi set   free system vrf Compressors system Designing 919825024651Hitachi set   free system vrf Compressors system Designing 919825024651
Hitachi set free system vrf Compressors system Designing 919825024651
 
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...
Anna-Karin Lindqvist och Stina Rutberg, Luleå tekniska universitet, Barn, Liv...
 
Infografía sobre competencias del Diseñador instruccional
Infografía sobre competencias del Diseñador instruccionalInfografía sobre competencias del Diseñador instruccional
Infografía sobre competencias del Diseñador instruccional
 
Φωτογραφία
Φωτογραφία Φωτογραφία
Φωτογραφία
 
8 veiligheid en reflectiebespreking.2017-03-08
8   veiligheid en reflectiebespreking.2017-03-088   veiligheid en reflectiebespreking.2017-03-08
8 veiligheid en reflectiebespreking.2017-03-08
 
Marie Nordén, NTF, Barn, Liv och Trafik 2017
Marie Nordén, NTF, Barn, Liv och Trafik 2017Marie Nordén, NTF, Barn, Liv och Trafik 2017
Marie Nordén, NTF, Barn, Liv och Trafik 2017
 
Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00Vi Cheat Sheet v 1 00
Vi Cheat Sheet v 1 00
 

지성봉 - WAI-ARIA 실전 공략 [WSConf. Seoul 2016/2017]