File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
<div class =" c-header__nav-container js-nav-panel" >
12
12
{% include " components/tree-nav.njk" %}
13
+
14
+
15
+
13
16
</div >
14
17
</div >
15
18
<!-- end c-header__inner-->
16
19
</header >
17
- <!-- end c-header-->
20
+ <!-- end c-header-->
18
21
Original file line number Diff line number Diff line change 5
5
{% for item in navigation .items %}
6
6
<li class =" c-tree-nav__item {% if item.subnav %}js-nav-dropdown{% endif %}" >
7
7
{% if item .subnav %}
8
- <button class =" c-tree-nav__link c-tree-nav__link--btn js-nav-dropdown-trigger" >
8
+ <button class =" c-tree-nav__link c-tree-nav__link--btn js-nav-dropdown-trigger" aria-expanded = " true " >
9
9
{{ item .label }}
10
10
{% set className = " c-tree-nav__icon" %}
11
11
{% include " components/icon-chevron-down.njk" %}
12
+
13
+
12
14
13
15
</button >
14
16
Original file line number Diff line number Diff line change 23
23
if ( navLinkParent . classList . contains ( 'is-active' ) ) {
24
24
/* 3 */
25
25
navLinkParent . classList . remove ( 'is-active' ) ;
26
+
27
+ this . setAttribute ( "aria-expanded" , "false" ) ;
26
28
} else {
27
29
/* 4 */
28
30
navLinkParent . classList . add ( 'is-active' ) ;
31
+
32
+ this . setAttribute ( "aria-expanded" , "true" ) ;
29
33
}
34
+
30
35
} ) ;
31
36
}
32
37
You can’t perform that action at this time.
0 commit comments