@@ -15,7 +15,7 @@ import { useDispatch, useSelector } from 'react-redux';
1515import PerformanceVisx from './PerformanceVisx/PerformanceVisx' ;
1616import WebMetricsContainer from './WebMetrics/WebMetricsContainer' ;
1717import { MainState , RootState , StateRouteProps } from '../../FrontendTypes' ;
18- import AxContainer from './AxMap/AxContainer' ;
18+ import AxContainer from './AxMap/AxContainer' ;
1919
2020/*
2121 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) => {
128128 element = {
129129 showTree ? (
130130 < 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 >
150156 { showTree && (
151157 < AxContainer
152158 axSnapshots = { axSnapshots }
@@ -159,25 +165,32 @@ const StateRoute = (props: StateRouteProps) => {
159165 ) : (
160166 < div >
161167 { 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 >
168176 ) }
169- < div >
177+ < div className = 'accessibility-controls' >
170178 < input
171179 type = 'radio'
180+ id = 'enable'
181+ name = 'accessibility'
172182 value = 'enable'
173183 checked = { selectedValue === 'enable' }
174184 onChange = { ( ) => {
175185 enableAxTreeButton ( ) ;
176186 } }
177187 />
178188 < label htmlFor = 'enable' > Enable</ label >
189+
179190 < input
180191 type = 'radio'
192+ id = 'disable'
193+ name = 'accessibility'
181194 value = 'disable'
182195 checked = { selectedValue === 'disable' }
183196 onChange = { ( ) => {
0 commit comments