Skip to content

Commit 935a535

Browse files
authored
Ensures role attribute has an appropriate value (microsoft#2651)
1 parent 35414fb commit 935a535

File tree

1 file changed

+34
-35
lines changed

1 file changed

+34
-35
lines changed

packages/typescriptlang-org/src/components/index/EditorExamples.tsx

Lines changed: 34 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -36,34 +36,34 @@ export const EditorExamples = () => {
3636
return false;
3737
};
3838

39-
return (
39+
return (
4040
<div className="headline-diagram">
4141
<div className="slides">
4242

43-
<div className="editor ts front">
44-
<ul className="editor-tabs">
45-
<li className={index === 0 ? "selected" : ""} ><a href="#" role="presentation" onClick={goto(0) }>{i("index_2_tab_1")}</a></li>
46-
<li className={index === 1 ? "selected" : ""} ><a href="#" role="presentation" onClick={goto(1) }>{i("index_2_tab_2")}</a></li>
47-
<li className={index === 2 ? "selected" : ""} ><a href="#" role="presentation" onClick={goto(2) }>{i("index_2_tab_3")}</a></li>
48-
<li className={index === 3 ? "selected" : ""} ><a href="#" role="presentation" onClick={goto(3) }>{i("index_2_tab_4")}</a></li>
49-
{/* <li className={index === 4 ? "selected" : ""} ><a href="#" role="presentation" onClick={goto(4) }>{i("index_2_tab_5")}</a></li> */}
50-
</ul>
51-
<div className="content" id="above-the-fold-headline-code">
43+
<div className="editor ts front">
44+
<ul className="editor-tabs">
45+
<li className={index === 0 ? "selected" : ""} ><a href="#" onClick={goto(0)}>{i("index_2_tab_1")}</a></li>
46+
<li className={index === 1 ? "selected" : ""} ><a href="#" onClick={goto(1)}>{i("index_2_tab_2")}</a></li>
47+
<li className={index === 2 ? "selected" : ""} ><a href="#" onClick={goto(2)}>{i("index_2_tab_3")}</a></li>
48+
<li className={index === 3 ? "selected" : ""} ><a href="#" onClick={goto(3)}>{i("index_2_tab_4")}</a></li>
49+
{/* <li className={index === 4 ? "selected" : ""} ><a href="#" onClick={goto(4) }>{i("index_2_tab_5")}</a></li> */}
50+
</ul>
51+
<div className="content" id="above-the-fold-headline-code">
5252
<div className="text">
53-
{{
54-
0: (
55-
<ShowErrorsExample />
56-
),
57-
1: (
58-
<TypeDefinitionsExample />
59-
),
60-
2: (
61-
<InterfaceExample />
62-
),
63-
3: (
64-
<ReactExample />
65-
),
66-
}[index]}
53+
{{
54+
0: (
55+
<ShowErrorsExample />
56+
),
57+
1: (
58+
<TypeDefinitionsExample />
59+
),
60+
2: (
61+
<InterfaceExample />
62+
),
63+
3: (
64+
<ReactExample />
65+
),
66+
}[index]}
6767
</div>
6868
</div>
6969
</div>
@@ -74,19 +74,18 @@ export const EditorExamples = () => {
7474
className="next-headline-button"
7575
href="#"
7676
onClick={next}
77-
role="presentation"
7877
aria-label="Show code sample"
7978
>
80-
<svg
81-
width="11"
82-
height="15"
83-
viewBox="0 0 11 15"
84-
fill="#F1F1F1"
85-
xmlns="http://www.w3.org/2000/svg"
86-
>
87-
<path d="M0 14.5V0.5L10.5 7L0 14.5Z" />
88-
</svg>
79+
<svg
80+
width="11"
81+
height="15"
82+
viewBox="0 0 11 15"
83+
fill="#F1F1F1"
84+
xmlns="http://www.w3.org/2000/svg"
85+
>
86+
<path d="M0 14.5V0.5L10.5 7L0 14.5Z" />
87+
</svg>
8988
</a>
90-
</div>
89+
</div>
9190
);
9291
};

0 commit comments

Comments
 (0)