Skip to content

Commit cc10697

Browse files
authored
Merge pull request #303 from microsoft/apc/accessibility-bugs
Address accessibility bugs
2 parents 1cabc7d + b155129 commit cc10697

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

playground/src/DocHtmlView.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
7070
if (docComment.summarySection) {
7171
outputElements.push(
7272
<React.Fragment key="summary">
73-
<h2 className="doc-heading">Summary</h2>
73+
<h1 className="doc-heading">Summary</h1>
7474
{this._renderContainer(docComment.summarySection)}
7575
</React.Fragment>
7676
);
@@ -91,7 +91,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
9191

9292
outputElements.push(
9393
<React.Fragment key="parameters">
94-
<h2 className="doc-heading">Parameters</h2>
94+
<h1 className="doc-heading">Parameters</h1>
9595
<table className="doc-table">
9696
<thead>
9797
<tr>
@@ -109,7 +109,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
109109
if (docComment.returnsBlock) {
110110
outputElements.push(
111111
<React.Fragment key="returns">
112-
<h2 className="doc-heading">Return Value</h2>
112+
<h1 className="doc-heading">Return Value</h1>
113113
{this._renderContainer(docComment.returnsBlock.content)}
114114
</React.Fragment>
115115
);
@@ -118,7 +118,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
118118
if (docComment.remarksBlock) {
119119
outputElements.push(
120120
<React.Fragment key="remarks">
121-
<h2 className="doc-heading">Remarks</h2>
121+
<h1 className="doc-heading">Remarks</h1>
122122
{this._renderContainer(docComment.remarksBlock.content)}
123123
</React.Fragment>
124124
);
@@ -150,7 +150,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
150150

151151
outputElements.push(
152152
<React.Fragment key="seeAlso">
153-
<h2 className="doc-heading">See Also</h2>
153+
<h1 className="doc-heading">See Also</h1>
154154
<ul>{listItems}</ul>
155155
</React.Fragment>
156156
);
@@ -173,7 +173,7 @@ export class DocHtmlView extends React.Component<IDocHtmlViewProps> {
173173

174174
outputElements.push(
175175
<React.Fragment key="modifiers">
176-
<h2 className="doc-heading">Modifiers</h2>
176+
<h1 className="doc-heading">Modifiers</h1>
177177
{modifierElements}
178178
</React.Fragment>
179179
);

playground/src/PlaygroundView.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ export class PlaygroundView extends React.Component<IPlaygroundViewProps, IPlayg
236236
return (
237237
<textarea
238238
className="playground-lines-text-editor"
239+
aria-label="Playground lines text editor"
239240
style={{
240241
...this._textAreaStyle,
241242
border: 'none',

playground/src/SyntaxStyler/DocNodeSyntaxStylerTheme.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ export class MonacoTSDocTheme {
1414
'tsdoc.delimiter': { foreground: 'a6a6a6' },
1515
'tsdoc.tag.block': { foreground: '003399', fontWeight: 'bold', className: 'tsdoc-blocktag' },
1616
'tsdoc.tag.inline': { foreground: '003399', fontWeight: 'bold' },
17-
'tsdoc.tag.modifier': { foreground: 'c55a11', fontWeight: 'bold' },
17+
'tsdoc.tag.modifier': { foreground: 'C55411', fontWeight: 'bold' },
1818
'tsdoc.tag.undefined': { foreground: 'a6a6a6' },
19-
'tsdoc.member.selector': { foreground: 'c55a11' },
20-
'tsdoc.member.identifier': { foreground: '5b9bd5' },
19+
'tsdoc.member.selector': { foreground: 'C55411' },
20+
'tsdoc.member.identifier': { foreground: '3D7CAA' },
2121
'tsdoc.packageName': { foreground: '003399' },
2222
'tsdoc.importPath': { foreground: '003399' },
2323
'tsdoc.element.name': { foreground: '003399' },
2424
'tsdoc.element.attribute.name': { foreground: '003399' },
2525
'tsdoc.element.attribute.value': { foreground: '000000' },
26-
'tsdoc.url': { foreground: '5b9bd5', className: 'tsdoc-underline' },
26+
'tsdoc.url': { foreground: '3D7CAA', className: 'tsdoc-underline' },
2727
'tsdoc.code': { foreground: '000000' },
28-
'tsdoc.language': { foreground: 'c55a11' },
28+
'tsdoc.language': { foreground: 'C55411' },
2929
'tsdoc.error': { foreground: 'FFFFFF', background: 'c00000' },
3030
'tsdoc.escaped': { background: 'e0e0e0' }
3131
};

0 commit comments

Comments
 (0)