Skip to content

Commit 08c39d5

Browse files
committed
Tutorial needs updated dev code
1 parent 1f185e5 commit 08c39d5

File tree

1 file changed

+28
-39
lines changed

1 file changed

+28
-39
lines changed

src/app/components/Buttons/Tutorial.tsx

Lines changed: 28 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
185185
{
186186
title: 'Accessibility Tree',
187187
element: '.accessibility-tab',
188-
intro:
189-
'<ul><li>This tab visually displays a Accessibility Tree</li></ul>',
188+
intro: '<ul><li>This tab visually displays a Accessibility Tree</li></ul>',
190189
position: 'bottom',
191190
},
192191
{
@@ -206,45 +205,35 @@ export default class Tutorial extends Component<TutorialProps, TutorialState> {
206205
'<ul><li>Here we can analyze the render times of our app</li> <li>This is the current series of state changes within our app</li> <li>Mouse over the bargraph elements for details on each specific component</li></ul>',
207206
position: 'top',
208207
},
209-
{
210-
title: 'Saving Series & Actions',
211-
element: '.save-series-button',
212-
intro: '<ul><li>Click here to save your current series data</li></ul>',
213-
position: 'top',
214-
},
215-
{
216-
title: 'Saving Series & Actions',
217-
element: '#seriesname',
218-
intro: '<ul><li>We can now give our series a name or leave it at the default</li></ul>',
219-
position: 'top',
220-
},
221-
{
222-
title: 'Saving Series & Actions',
223-
element: '.actionname',
224-
intro:
225-
'<ul><li>If we wish to save a specific action to compare later, give it a name here</li></ul>',
226-
position: 'top',
227-
},
228-
{
229-
title: 'Saving Series & Actions',
230-
element: '.save-series-button',
231-
intro:
232-
'<ul><li>Press save series again.</li> <li>Your series and actions are now saved!</li></ul>',
233-
position: 'top',
234-
},
235-
{
236-
title: 'Comparison Tab',
237-
element: '#router-link-performance-comparison',
238-
intro: "<ul><li>Now let's head over to the comparison tab</li></ul>",
239-
position: 'top',
240-
},
241-
{
242-
title: 'Comparing Series',
243-
intro: '<ul><li>Here we can select a saved series or action to compare</li></ul>',
244-
position: 'top',
245-
},
246208
];
247209
break;
210+
// <div>
211+
// Nodes from the accessibility tree have either a role <strong>role</strong> or <strong>internalRole</strong>
212+
// <ul>
213+
// <li>
214+
// <i><b>Role</b></i> refers to <strong> ARIA </strong> roles, which indicate the purpose of the element to assistive technologies, like screen readers.
215+
// All of the nodes rendered in this tree have a role of 'role'
216+
// </li>
217+
// <li>
218+
// <i><b>internalRole</b></i> refers to browser-specific roles <strong> Chrome </strong> for its own accessibility processing
219+
// </li>
220+
// </ul>
221+
// <p> Each node is given a property labeled <strong>ignored</strong>. Nodes read by the screen reader have their ignored property evaluate to <strong>false</strong>.
222+
// Nodes not read by the screen reader evaluate to <strong>true</strong>.</p>
223+
// <p> Nodes labeled as <strong>no name</strong> are visible to a screen reader, but were not given a name label.</p>
224+
// </div>
225+
// );
226+
case 'accessibility':
227+
steps = [
228+
{
229+
title: 'Accessibility Tree',
230+
element: '.display',
231+
intro:
232+
'<ul><li>Nodes from the accessibility tree have either a role or internalRole</li></ul>',
233+
position: 'top',
234+
},
235+
];
236+
break;
248237
case 'webmetrics':
249238
steps = [
250239
{

0 commit comments

Comments
 (0)