@@ -15,7 +15,7 @@ import { useDispatch, useSelector } from 'react-redux';
15
15
import PerformanceVisx from './PerformanceVisx/PerformanceVisx' ;
16
16
import WebMetricsContainer from './WebMetrics/WebMetricsContainer' ;
17
17
import { MainState , RootState , StateRouteProps } from '../../FrontendTypes' ;
18
- import AxContainer from './AxMap/AxContainer' ;
18
+ import AxContainer from './AxMap/AxContainer' ;
19
19
20
20
/*
21
21
Loads the appropriate StateRoute view and renders the Map, Performance, History, Webmetrics, and Tree navbar buttons after clicking on the 'State' button located near the top rightmost corner.
@@ -128,25 +128,31 @@ const StateRoute = (props: StateRouteProps) => {
128
128
element = {
129
129
showTree ? (
130
130
< div >
131
- < input
132
- type = 'radio'
133
- value = 'enable'
134
- checked = { selectedValue === 'enable' }
135
- onChange = { ( ) => {
136
- enableAxTreeButton ( ) ;
137
- } }
138
- />
139
- < label htmlFor = 'enable' > Enable</ label >
140
- < input
141
- type = 'radio'
142
- value = 'disable'
143
- checked = { selectedValue === 'disable' }
144
- onChange = { ( ) => {
145
- disableAxTree ( ) ;
146
- } }
147
- />
148
- < label htmlFor = 'disable' > Disable</ label >
149
- { /* @ts -ignore */ }
131
+ < div className = 'accessibility-controls' >
132
+ < input
133
+ type = 'radio'
134
+ id = 'enable'
135
+ name = 'accessibility'
136
+ value = 'enable'
137
+ checked = { selectedValue === 'enable' }
138
+ onChange = { ( ) => {
139
+ enableAxTreeButton ( ) ;
140
+ } }
141
+ />
142
+ < label htmlFor = 'enable' > Enable</ label >
143
+
144
+ < input
145
+ type = 'radio'
146
+ id = 'disable'
147
+ name = 'accessibility'
148
+ value = 'disable'
149
+ checked = { selectedValue === 'disable' }
150
+ onChange = { ( ) => {
151
+ disableAxTree ( ) ;
152
+ } }
153
+ />
154
+ < label htmlFor = 'disable' > Disable</ label >
155
+ </ div >
150
156
{ showTree && (
151
157
< AxContainer
152
158
axSnapshots = { axSnapshots }
@@ -159,25 +165,32 @@ const StateRoute = (props: StateRouteProps) => {
159
165
) : (
160
166
< div >
161
167
{ showParagraph && (
162
- < p >
163
- A Note to Developers: Reactime is using the Chrome Debugger API in order to
164
- grab the Accessibility Tree. Enabling this option will allow you to record
165
- Accessibility Tree snapshots, but will result in the Chrome browser notifying
166
- you that the Chrome Debugger has started.
167
- </ p >
168
+ < div className = 'accessibility-text' >
169
+ < p >
170
+ A Note to Developers: Reactime is using the Chrome Debugger API in order to
171
+ grab the Accessibility Tree. Enabling this option will allow you to record
172
+ Accessibility Tree snapshots, but will result in the Chrome browser
173
+ notifying you that the Chrome Debugger has started.
174
+ </ p >
175
+ </ div >
168
176
) }
169
- < div >
177
+ < div className = 'accessibility-controls' >
170
178
< input
171
179
type = 'radio'
180
+ id = 'enable'
181
+ name = 'accessibility'
172
182
value = 'enable'
173
183
checked = { selectedValue === 'enable' }
174
184
onChange = { ( ) => {
175
185
enableAxTreeButton ( ) ;
176
186
} }
177
187
/>
178
188
< label htmlFor = 'enable' > Enable</ label >
189
+
179
190
< input
180
191
type = 'radio'
192
+ id = 'disable'
193
+ name = 'accessibility'
181
194
value = 'disable'
182
195
checked = { selectedValue === 'disable' }
183
196
onChange = { ( ) => {
0 commit comments