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

Side by Side Diff: chrome/browser/resources/settings/a11y_page/manage_a11y_page.html

Issue 2373713004: Fix style issues with MD accessibility page (Closed)
Patch Set: action-link style fixed Created 4 years, 2 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <link rel="import" href="chrome://resources/html/action_link.html">
dschuyler 2016/09/27 22:41:27 WDYT about making a Polymer-ish control for actio
1 <link rel="import" href="chrome://resources/html/polymer.html"> 2 <link rel="import" href="chrome://resources/html/polymer.html">
2 <link rel="import" href="/controls/settings_checkbox.html"> 3 <link rel="import" href="/controls/settings_checkbox.html">
3 <link rel="import" href="/i18n_setup.html"> 4 <link rel="import" href="/i18n_setup.html">
4 <link rel="import" href="/route.html"> 5 <link rel="import" href="/route.html">
5 <link rel="import" href="/settings_shared_css.html"> 6 <link rel="import" href="/settings_shared_css.html">
6 <link rel="import" href="/settings_vars_css.html"> 7 <link rel="import" href="/settings_vars_css.html">
7 8
8 <dom-module id="settings-manage-a11y-page"> 9 <dom-module id="settings-manage-a11y-page">
10 <link rel="import" type="css" href="chrome://resources/css/action_link.css">
dschuyler 2016/09/27 22:41:27 Ah, this method importing css is deprecated. (I kn
Dan Beam 2016/09/27 22:51:17 for future reference: action_link.css is used by o
9 <template> 11 <template>
10 <style include="settings-shared"> 12 <style include="settings-shared">
11 .indented { 13 .indented {
12 -webkit-margin-start: 20px; 14 -webkit-margin-start: 20px;
13 } 15 }
14 16
15 .no-top-border { 17 .no-top-border {
16 border-top: none; 18 border-top: none;
17 } 19 }
18 20
19 h3 {
20 color: var(--settings-nav-grey);
21 font-weight: 500;
22 }
23
24 .settings-box iron-icon { 21 .settings-box iron-icon {
25 -webkit-margin-end: var(--iron-icon-spacing); 22 -webkit-margin-end: var(--iron-icon-spacing);
26 } 23 }
27 24
28 .settings-box settings-checkbox { 25 .settings-box settings-checkbox {
29 flex-grow: 1; 26 flex-grow: 1;
30 } 27 }
28
29 .list-item settings-dropdown-menu {
30 margin-left: 16px;
31 }
31 </style> 32 </style>
32 <div class="settings-box row first"> 33 <div class="settings-box row first">
33 <span> 34 <span>
34 $i18n{a11yExplanation} 35 $i18n{a11yExplanation}
35 <a href="$i18nRaw{a11yLearnMoreUrl}" target="_blank"> 36 <a href="$i18nRaw{a11yLearnMoreUrl}" target="_blank" is="action-link">
Dan Beam 2016/09/27 22:50:00 Dominic: I added <a is="action-link"> for when som
dmazzoni 2016/09/27 22:53:38 I asked Hector and Dave and they said that this wa
Dan Beam 2016/09/27 22:56:02 I think we probably just need to update this: http
36 $i18n{learnMore} 37 $i18n{learnMore}
37 </a> 38 </a>
38 </span> 39 </span>
39 </div> 40 </div>
40 41
41 <div class="settings-box block"> 42 <div class="settings-box block">
42 <h3>$i18n{textToSpeechHeading}</h3> 43 <h2>$i18n{textToSpeechHeading}</h2>
43 <div class="settings-box first indented"> 44 <div class="settings-box first indented">
44 <settings-checkbox pref="{{prefs.settings.accessibility}}" 45 <settings-checkbox pref="{{prefs.settings.accessibility}}"
45 label="$i18n{chromeVoxLabel}"> 46 label="$i18n{chromeVoxLabel}">
46 </settings-checkbox> 47 </settings-checkbox>
47 <paper-icon-button icon="cr:settings" on-tap="onChromeVoxSettingsTap_"> 48 <paper-icon-button icon="cr:settings" on-tap="onChromeVoxSettingsTap_">
48 </paper-icon-button> 49 </paper-icon-button>
49 </div> 50 </div>
50 <template is="dom-if" if="[[showExperimentalFeatures_]]"> 51 <template is="dom-if" if="[[showExperimentalFeatures_]]">
51 <div class="settings-box no-top-border indented"> 52 <div class="settings-box no-top-border indented">
52 <settings-checkbox pref="{{prefs.settings.a11y.select_to_speak}}" 53 <settings-checkbox pref="{{prefs.settings.a11y.select_to_speak}}"
53 label="$i18n{selectToSpeakTitle}" 54 label="$i18n{selectToSpeakTitle}"
54 sub-label="$i18n{selectToSpeakDescription}"> 55 sub-label="$i18n{selectToSpeakDescription}">
55 </settings-checkbox> 56 </settings-checkbox>
56 </div> 57 </div>
57 </template> 58 </template>
58 59
59 <h3>$i18n{displayHeading}</h3> 60 <h2>$i18n{displayHeading}</h2>
60 <div class="settings-box block first indented"> 61 <div class="settings-box block first indented">
61 <settings-checkbox label="$i18n{highContrastLabel}" 62 <settings-checkbox label="$i18n{highContrastLabel}"
62 pref="{{prefs.settings.a11y.high_contrast_enabled}}"> 63 pref="{{prefs.settings.a11y.high_contrast_enabled}}">
63 </settings-checkbox> 64 </settings-checkbox>
64 <settings-checkbox label="$i18n{screenMagnifierLabel}" 65 <settings-checkbox label="$i18n{screenMagnifierLabel}"
65 pref="{{prefs.settings.a11y.screen_magnifier}}"> 66 pref="{{prefs.settings.a11y.screen_magnifier}}">
66 </settings-checkbox> 67 </settings-checkbox>
67 </div> 68 </div>
68 <div class="settings-box two-line indented" on-tap="onDisplayTap_" 69 <div class="settings-box two-line indented" on-tap="onDisplayTap_"
69 actionable> 70 actionable>
70 <iron-icon icon="settings:desktop-windows"></iron-icon> 71 <iron-icon icon="settings:desktop-windows"></iron-icon>
71 <div class="start"> 72 <div class="start">
72 <div>$i18n{displaySettingsTitle}</div> 73 <div>$i18n{displaySettingsTitle}</div>
73 <div class="secondary">$i18n{displaySettingsDescription}</div> 74 <div class="secondary">$i18n{displaySettingsDescription}</div>
74 </div> 75 </div>
75 </div> 76 </div>
76 <div class="settings-box two-line indented" on-tap="onAppearanceTap_" 77 <div class="settings-box two-line indented" on-tap="onAppearanceTap_"
77 actionable> 78 actionable>
78 <iron-icon icon="settings:text-format"></iron-icon> 79 <iron-icon icon="settings:text-format"></iron-icon>
79 <div class="start"> 80 <div class="start">
80 <div>$i18n{appearanceSettingsTitle}</div> 81 <div>$i18n{appearanceSettingsTitle}</div>
81 <div class="secondary">$i18n{appearanceSettingsDescription}</div> 82 <div class="secondary">$i18n{appearanceSettingsDescription}</div>
82 </div> 83 </div>
83 </div> 84 </div>
84 85
85 <h3>$i18n{keyboardHeading}</h3> 86 <h2>$i18n{keyboardHeading}</h2>
86 <div class="settings-box block first indented"> 87 <div class="settings-box block first indented">
87 <settings-checkbox 88 <settings-checkbox
88 pref="{{prefs.settings.a11y.sticky_keys_enabled}}" 89 pref="{{prefs.settings.a11y.sticky_keys_enabled}}"
89 label="$i18n{stickyKeysLabel}"> 90 label="$i18n{stickyKeysLabel}">
90 </settings-checkbox> 91 </settings-checkbox>
91 <settings-checkbox pref="{{prefs.settings.a11y.virtual_keyboard}}" 92 <settings-checkbox pref="{{prefs.settings.a11y.virtual_keyboard}}"
92 label="$i18n{onScreenKeyboardLabel}"> 93 label="$i18n{onScreenKeyboardLabel}">
93 </settings-checkbox> 94 </settings-checkbox>
94 <settings-checkbox pref="{{prefs.settings.a11y.focus_highlight}}" 95 <settings-checkbox pref="{{prefs.settings.a11y.focus_highlight}}"
95 label="$i18n{focusHighlightLabel}"> 96 label="$i18n{focusHighlightLabel}">
96 </settings-checkbox> 97 </settings-checkbox>
97 <settings-checkbox pref="{{prefs.settings.a11y.caret_highlight}}" 98 <settings-checkbox pref="{{prefs.settings.a11y.caret_highlight}}"
98 label="$i18n{caretHighlightLabel}"> 99 label="$i18n{caretHighlightLabel}">
99 </settings-checkbox> 100 </settings-checkbox>
100 <template is="dom-if" if="[[showExperimentalFeatures_]]"> 101 <template is="dom-if" if="[[showExperimentalFeatures_]]">
101 <settings-checkbox pref="{{prefs.settings.a11y.switch_access}}" 102 <settings-checkbox pref="{{prefs.settings.a11y.switch_access}}"
102 label="$i18n{switchAccessLabel}"> 103 label="$i18n{switchAccessLabel}">
103 </settings-checkbox> 104 </settings-checkbox>
104 </template> 105 </template>
105 </div> 106 </div>
106 <div class="settings-box two-line indented" on-tap="onKeyboardTap_" 107 <div class="settings-box two-line indented" on-tap="onKeyboardTap_"
107 actionable> 108 actionable>
108 <iron-icon icon="settings:keyboard"></iron-icon> 109 <iron-icon icon="settings:keyboard"></iron-icon>
109 <div class="start"> 110 <div class="start">
110 <div>$i18n{keyboardSettingsTitle}</div> 111 <div>$i18n{keyboardSettingsTitle}</div>
111 <div class="secondary">$i18n{keyboardSettingsDescription}</div> 112 <div class="secondary">$i18n{keyboardSettingsDescription}</div>
112 </div> 113 </div>
113 </div> 114 </div>
114 115
115 <h3>$i18n{mouseAndTouchpadHeading}</h3> 116 <h2>$i18n{mouseAndTouchpadHeading}</h2>
116 <div class="settings-box block first indented"> 117 <div class="settings-box block first indented">
117 <settings-checkbox label="$i18n{clickOnStopLabel}" 118 <settings-checkbox label="$i18n{clickOnStopLabel}"
118 pref="{{prefs.settings.a11y.autoclick}}"> 119 pref="{{prefs.settings.a11y.autoclick}}">
119 </settings-checkbox> 120 </settings-checkbox>
120 <div class="list-item settings-checkbox-spacer"> 121 <div class="list-item settings-checkbox-spacer">
121 <div>$i18n{delayBeforeClickLabel}</div> 122 <div>$i18n{delayBeforeClickLabel}</div>
122 <settings-dropdown-menu 123 <settings-dropdown-menu
123 pref="{{prefs.settings.a11y.autoclick_delay_ms}}" 124 pref="{{prefs.settings.a11y.autoclick_delay_ms}}"
124 menu-options="[[autoClickDelayOptions_]]"> 125 menu-options="[[autoClickDelayOptions_]]">
125 </settings-dropdown-menu> 126 </settings-dropdown-menu>
(...skipping 10 matching lines...) Expand all
136 </div> 137 </div>
137 <div class="settings-box two-line indented" on-tap="onMouseTap_" 138 <div class="settings-box two-line indented" on-tap="onMouseTap_"
138 actionable> 139 actionable>
139 <iron-icon icon="settings:mouse"></iron-icon> 140 <iron-icon icon="settings:mouse"></iron-icon>
140 <div class="start"> 141 <div class="start">
141 <div>$i18n{mouseSettingsTitle}</div> 142 <div>$i18n{mouseSettingsTitle}</div>
142 <div class="secondary">$i18n{mouseSettingsDescription}</div> 143 <div class="secondary">$i18n{mouseSettingsDescription}</div>
143 </div> 144 </div>
144 </div> 145 </div>
145 146
146 <h3>$i18n{audioHeading}</h3> 147 <h2>$i18n{audioHeading}</h2>
147 <div class="settings-box block first indented"> 148 <div class="settings-box block first indented">
148 <settings-checkbox pref="{{prefs.settings.a11y.mono_audio}}" 149 <settings-checkbox pref="{{prefs.settings.a11y.mono_audio}}"
149 label="$i18n{monoAudioLabel}"> 150 label="$i18n{monoAudioLabel}">
150 </settings-checkbox> 151 </settings-checkbox>
151 </div> 152 </div>
152 </div> 153 </div>
153 154
154 <div class="settings-box two-line" on-tap="onMoreFeaturesTap_" actionable> 155 <div class="settings-box two-line" on-tap="onMoreFeaturesTap_" actionable>
155 <div class="start"> 156 <div class="start">
156 <div>$i18n{additionalFeaturesTitle}</div> 157 <div>$i18n{additionalFeaturesTitle}</div>
157 <div class="secondary">$i18n{additionalFeaturesDescription}</div> 158 <div class="secondary">$i18n{additionalFeaturesDescription}</div>
158 </div> 159 </div>
159 </div> 160 </div>
160 </template> 161 </template>
161 <script src="manage_a11y_page.js"></script> 162 <script src="manage_a11y_page.js"></script>
162 </dom-module> 163 </dom-module>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698