File tree Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Expand file tree Collapse file tree 2 files changed +2
-8
lines changed Original file line number Diff line number Diff line change 79
79
// pressing escape, which is the standard key to collapse expanded elements.
80
80
var guidesMenuButton = document . getElementById ( "guides-menu-button" ) ;
81
81
82
- // The link is now acting as a button (but still allows for open in new tab).
83
- guidesMenuButton . setAttribute ( 'role' , 'button' )
84
- guidesMenuButton . setAttribute ( 'aria-controls' , guidesMenuButton . getAttribute ( 'data-aria-controls' ) ) ;
85
- guidesMenuButton . setAttribute ( 'aria-expanded' , guidesMenuButton . getAttribute ( 'data-aria-expanded' ) ) ;
86
- guidesMenuButton . removeAttribute ( 'data-aria-controls' ) ;
87
- guidesMenuButton . removeAttribute ( 'data-aria-expanded' ) ;
88
-
89
82
var guides = document . getElementById (
90
83
guidesMenuButton . getAttribute ( "aria-controls" )
91
84
) ;
Original file line number Diff line number Diff line change 78
78
< ul class ="nav ">
79
79
< li > < a class ="nav-item " id ="home_nav " href ="https://rubyonrails.org/ "> Home</ a > </ li >
80
80
< li class ="guides-index guides-index-large ">
81
- < a href ="index.html " id ="guides-menu-button " data- aria-controls ="guides " data- aria-expanded ="false " class ="guides-index-item nav-item "> Guides Index</ a >
81
+ < a href ="index.html " id ="guides-menu-button " role =" button " aria-controls ="guides " aria-expanded ="false " class ="guides-index-item nav-item "> Guides Index</ a >
82
82
< div id ="guides " class ="clearfix " style ="display: none; ">
83
83
< hr />
84
84
< dl class ="guides-section-container ">
161
161
documentation is very welcome on the <%= link_to 'official Ruby on Rails Forum' , 'https://discuss.rubyonrails.org/c/rubyonrails-docs' %> .
162
162
</ p >
163
163
</ footer >
164
+ </ div >
164
165
</ div >
165
166
</ article >
166
167
</ main >
You can’t perform that action at this time.
0 commit comments