Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1730)

Unified Diff: chrome/browser/resources/welcome/win10/inline.html

Issue 2742833002: [Win10 FRE] Fix ARIA attributes to conform to accordion widget. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/resources/welcome/win10/inline.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/welcome/win10/inline.html
diff --git a/chrome/browser/resources/welcome/win10/inline.html b/chrome/browser/resources/welcome/win10/inline.html
index e8149b30f3b10359b5e9941af589eb32586ce9f6..af02727c82dc24fcce5522e45d3252fb904120a8 100644
--- a/chrome/browser/resources/welcome/win10/inline.html
+++ b/chrome/browser/resources/welcome/win10/inline.html
@@ -275,30 +275,32 @@
<div class="sections">
<div class$="[[computeClasses(isCombined)]]">
<template is="dom-if" if="[[isCombined]]">
- <a is="action-link" class="section-heading" on-tap="onToggle">
- <div class="section-heading-text">
- $i18n{defaultBrowserSubheaderText}
- </div>
- <iron-icon class="section-heading-expand" icon="cr:expand-more">
- </iron-icon>
- </a>
+ <div role="heading">
+ <a id="tab1" is="action-link" class="section-heading" on-tap="onToggle" role="button" area-controls="panel1" aria-expanded="true">
+ <div class="section-heading-text" role="presentation">
+ $i18n{defaultBrowserSubheaderText}
+ </div>
+ <iron-icon class="section-heading-expand" icon="cr:expand-more" role="presentation">
+ </iron-icon>
+ </a>
+ </div>
</template>
<template is="dom-if" if="[[!isCombined]]">
- <div class="section-heading">
- <div class="section-heading-text">
+ <div class="section-heading" tabindex="0" role="text">
dmazzoni 2017/03/09 19:55:08 What's the tabindex here for? It's unusual to mak
huangs 2017/03/10 17:23:15 It was for my own convenience -- previously I didn
+ <div class="section-heading-text" role="presentation">
$i18n{defaultBrowserSubheaderText}
</div>
</div>
</template>
- <ol class="section-steps">
- <li>
- <a is="action-link" on-tap="onOpenSettings">
+ <ol id="panel1" class="section-steps" role="list" aria-labelledby="tab1">
dmazzoni 2017/03/09 19:55:08 Role=list shouldn't be needed here, it's implicit
huangs 2017/03/10 17:23:15 This was a workaround, but seems to be not needed
+ <li tabindex="0">
dmazzoni 2017/03/09 19:55:08 No tabindex here. The link is already focusable
huangs 2017/03/10 17:23:15 Removed.
+ <a is="action-link" on-tap="onOpenSettings" tabindex="0" role="link">
$i18n{openSettingsText}
</a>
</li>
- <li>
- <div>$i18nRaw{clickEdgeText}</div>
- <div class="screenshot-image" id="default-image">
+ <li tabindex="0">
+ <div role="presentation">$i18nRaw{clickEdgeText}</div>
dmazzoni 2017/03/09 19:55:08 All of the role=presentation in this change is saf
huangs 2017/03/10 17:23:15 These are added since otherwise MS Narrator, after
+ <div class="screenshot-image" id="default-image" role="presentation">
<div class="screenshot-overlay" id="browser-overlay">
<div aria-hidden="true">$i18n{webBrowserLabel}</div>
</div>
@@ -307,21 +309,27 @@
</div>
</div>
</li>
- <li>$i18nRaw{clickSelectChrome}</li>
+ <li tabindex="0">
+ <div role="presentation">$i18nRaw{clickSelectChrome}</div>
+ </li>
</ol>
</div>
<template is="dom-if" if="[[isCombined]]">
<div class="section expandable">
- <a is="action-link" class="section-heading" on-tap="onToggle">
- <div class="section-heading-text">$i18n{pinSubheaderText}</div>
- <iron-icon class="section-heading-expand" icon="cr:expand-more">
- </iron-icon>
- </a>
- <ol class="section-steps">
- <li>$i18nRaw{rightClickText}</li>
- <li>
- <div>$i18nRaw{pinInstructionText}</div>
- <div class="screenshot-image" id="taskbar-image">
+ <div role="heading">
dmazzoni 2017/03/09 19:55:07 aria-level=2 or something like that, just like a <
huangs 2017/03/10 17:23:15 That would require more complex CSS to restyle <h2
+ <a id="tab2" is="action-link" class="section-heading" on-tap="onToggle" role="button" area-controls="panel2" aria-expanded="false">
dmazzoni 2017/03/09 19:55:08 aria-controls (spelling)
huangs 2017/03/10 17:23:15 Ah oops. Done.
+ <div class="section-heading-text" role="presentation">
+ $i18n{pinSubheaderText}
+ </div>
+ <iron-icon class="section-heading-expand" icon="cr:expand-more" role="presentation">
+ </iron-icon>
+ </a>
+ </div>
+ <ol id="panel2" class="section-steps" role="list" aria-labelledby="tab2">
+ <li tabindex="0">$i18nRaw{rightClickText}</li>
+ <li tabindex="0">
+ <div role="presentation">$i18nRaw{pinInstructionText}</div>
+ <div class="screenshot-image" id="taskbar-image" role="presentation">
<div class="screenshot-overlay" id="taskbar-overlay">
<div aria-hidden="true">$i18n{pinToTaskbarLabel}</div>
</div>
« no previous file with comments | « no previous file | chrome/browser/resources/welcome/win10/inline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698