|
131 | 131 | } |
132 | 132 | })); |
133 | 133 |
|
134 | | - ReactDOM.render(Demo({defaultValue: 0, orientation: 'horizontal'}), document.getElementById('horizontal-1')); |
| 134 | + ReactDOM.render(Demo({ |
| 135 | + defaultValue: 0, |
| 136 | + orientation: 'horizontal', |
| 137 | + ariaLabel: 'This is a single handle', |
| 138 | + }), document.getElementById('horizontal-1')); |
135 | 139 |
|
136 | 140 | ReactDOM.render(Demo({ |
137 | 141 | defaultValue: [0, 100], |
138 | 142 | orientation: 'horizontal', |
139 | | - withBars: true |
| 143 | + withBars: true, |
| 144 | + ariaLabel: ['Lower handle', 'Upper handle'], |
| 145 | + ariaValuetext: 'Some arbitrary value', |
140 | 146 | }), document.getElementById('horizontal-2')); |
141 | 147 |
|
142 | 148 | ReactDOM.render(Demo({ |
143 | 149 | defaultValue: [0, 50, 100], |
144 | 150 | orientation: 'horizontal', |
145 | | - withBars: true |
| 151 | + withBars: true, |
| 152 | + ariaLabel: ['Leftmost handle', 'Middle handle', 'Rightmost handle'], |
146 | 153 | }), document.getElementById('horizontal-3')); |
147 | 154 |
|
148 | 155 | ReactDOM.render(Demo({ |
149 | 156 | defaultValue: [0, 50, 100], |
150 | 157 | orientation: 'vertical', |
151 | 158 | withBars: true, |
152 | | - invert: true |
| 159 | + invert: true, |
| 160 | + ariaLabel: ['Lowest handle', 'Middle handle', 'Top handle'], |
153 | 161 | }), document.getElementById('vertical')); |
154 | 162 | </script> |
155 | 163 | </body> |
|
0 commit comments