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

Issue 2094813002: MD Settings: make custom UIs look "actionable" (Closed)

Created:
4 years, 6 months ago by Dan Beam
Modified:
4 years, 6 months ago
Reviewers:
dpapad
CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, stevenjb+watch-md-settings_chromium.org, tommycli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: make custom UIs look "actionable" Currently, that just entails a cursor: pointer; but may involve e.g. a :hover effect in the future. This introduces the shared variable: --settings-actionable: { cursor: pointer; }; which can be used from places that don't want all the settings shared style (which generally applies to the sections in the middle). .my-custom-thing { @apply(--settings-actionable); } For stuff inside of <settings-main> (or code otherwise using settings-shared), it's probably easier to just use the new: [actionable] { @apply(--settings-actionable); } and just annotate your element with that attribute, i.e. <div id="frobber" on-tap="onFrobberTap_" actionable> FYI: This CL is semi-automatedly generated via: vim -p `git grep -l on-tap -- chrome/browser/resources/settings` and lots of hacking. R=dpapad@chromium.org BUG=611826 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/a298aa9c3276b78073a61613787909a0b2427302 Committed: https://crrev.com/ed68883804c25965c677a99278d1ab4c2d98af96 Cr-Original-Commit-Position: refs/heads/master@{#401763} Cr-Commit-Position: refs/heads/master@{#402042}

Patch Set 1 #

Total comments: 16

Patch Set 2 : dpapad@ review #

Total comments: 8

Patch Set 3 : dpapad@ review #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -52 lines) Patch
M chrome/browser/resources/settings/about_page/about_page.html View 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/resources/settings/appearance_page/appearance_fonts_page.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/appearance_page/appearance_page.html View 1 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/bluetooth_page/bluetooth_device_list_item.html View 1 2 chunks +7 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/default_browser_page/default_browser_page.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/device_page/device_page.html View 1 chunk +5 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/device_page/keyboard.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/internet_page/network_proxy_exclusions.html View 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/internet_page/network_summary_item.html View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/settings/languages_page/languages_page.html View 1 2 3 chunks +8 lines, -3 lines 1 comment Download
M chrome/browser/resources/settings/languages_page/languages_page.js View 1 2 1 chunk +14 lines, -5 lines 2 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/passwords_and_forms_page.html View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/people_page/people_page.html View 1 4 chunks +7 lines, -13 lines 0 comments Download
M chrome/browser/resources/settings/people_page/sync_page.html View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/privacy_page/privacy_page.html View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_page.html View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/settings_main/settings_main.html View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_menu/settings_menu.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_root_css.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_list.html View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/settings/site_settings_page/site_settings_page.html View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
Dan Beam
https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/about_page/about_page.html File chrome/browser/resources/settings/about_page/about_page.html (right): https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/about_page/about_page.html#newcode30 chrome/browser/resources/settings/about_page/about_page.html:30: margin-top: auto; presubmit made me do it (it was ...
4 years, 6 months ago (2016-06-23 19:20:01 UTC) #4
dpapad
https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/appearance_page/appearance_page.html File chrome/browser/resources/settings/appearance_page/appearance_page.html (right): https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/appearance_page/appearance_page.html#newcode55 chrome/browser/resources/settings/appearance_page/appearance_page.html:55: <paper-button id="resetTheme" on-tap="resetTheme_" actionable Given that paper-buttons are by ...
4 years, 6 months ago (2016-06-23 20:51:45 UTC) #5
Dan Beam
https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/appearance_page/appearance_page.html File chrome/browser/resources/settings/appearance_page/appearance_page.html (right): https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/appearance_page/appearance_page.html#newcode55 chrome/browser/resources/settings/appearance_page/appearance_page.html:55: <paper-button id="resetTheme" on-tap="resetTheme_" actionable On 2016/06/23 20:51:45, dpapad wrote: ...
4 years, 6 months ago (2016-06-23 21:28:03 UTC) #7
dpapad
LGTM overall. Some comments along the lines of previous batch of comments, and a question. ...
4 years, 6 months ago (2016-06-23 22:07:46 UTC) #8
Dan Beam
https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html File chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html (right): https://codereview.chromium.org/2094813002/diff/1/chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html#newcode51 chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html:51: <div id="menuEditAddress" class="list-item menu-item" actionable On 2016/06/23 22:07:45, dpapad ...
4 years, 6 months ago (2016-06-23 23:31:49 UTC) #9
dpapad
https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.js File chrome/browser/resources/settings/languages_page/languages_page.js (right): https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.js#newcode236 chrome/browser/resources/settings/languages_page/languages_page.js:236: getLanguageItemClass_: function(languageCode, prospectiveUILanguage, Nit (optional): You could split this ...
4 years, 6 months ago (2016-06-23 23:44:23 UTC) #10
Dan Beam
https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.js File chrome/browser/resources/settings/languages_page/languages_page.js (right): https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.js#newcode236 chrome/browser/resources/settings/languages_page/languages_page.js:236: getLanguageItemClass_: function(languageCode, prospectiveUILanguage, On 2016/06/23 23:44:22, dpapad wrote: > ...
4 years, 6 months ago (2016-06-23 23:48:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2094813002/40001
4 years, 6 months ago (2016-06-23 23:50:09 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-24 00:58:26 UTC) #15
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/a298aa9c3276b78073a61613787909a0b2427302 Cr-Commit-Position: refs/heads/master@{#401763}
4 years, 6 months ago (2016-06-24 01:00:21 UTC) #17
blundell
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2089313005/ by blundell@chromium.org. ...
4 years, 6 months ago (2016-06-24 09:57:27 UTC) #18
mazigh.imazighan11hakim
4 years, 6 months ago (2016-06-24 10:23:14 UTC) #20
michaelpg
https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.html File chrome/browser/resources/settings/languages_page/languages_page.html (right): https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.html#newcode54 chrome/browser/resources/settings/languages_page/languages_page.html:54: item.language.supportsUI)]]" test needs to change '.list-button' to '.list-button:last-of-type' or ...
4 years, 6 months ago (2016-06-24 17:04:29 UTC) #21
michaelpg
On 2016/06/24 17:04:29, michaelpg wrote: > https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.html > File chrome/browser/resources/settings/languages_page/languages_page.html > (right): > > https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.html#newcode54 ...
4 years, 6 months ago (2016-06-24 17:20:10 UTC) #22
michaelpg
On 2016/06/24 17:20:10, michaelpg wrote: > On 2016/06/24 17:04:29, michaelpg wrote: > > > https://codereview.chromium.org/2094813002/diff/40001/chrome/browser/resources/settings/languages_page/languages_page.html ...
4 years, 6 months ago (2016-06-24 18:36:11 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094813002/40001
4 years, 6 months ago (2016-06-25 00:52:21 UTC) #27
Dan Beam
let's try again after this has landed: https://codereview.chromium.org/2095993003/
4 years, 6 months ago (2016-06-25 01:01:01 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2094813002/40001
4 years, 6 months ago (2016-06-25 01:01:29 UTC) #31
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-25 01:33:29 UTC) #33
commit-bot: I haz the power
4 years, 6 months ago (2016-06-25 01:35:52 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ed68883804c25965c677a99278d1ab4c2d98af96
Cr-Commit-Position: refs/heads/master@{#402042}

Powered by Google App Engine
This is Rietveld 408576698