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

Issue 2639373002: MD Settings: clean up text controls (links, buttons) (Closed)

Created:
3 years, 11 months ago by scottchen
Modified:
3 years, 10 months ago
Reviewers:
Dan Beam, michaelpg
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-md-ui_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MD Settings: clean up text controls (links, buttons) Making styles and behaviors consistent for <a href>, .action-link, .list-button, and other varieties of text-based action items. BUG=668307 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation NOTRY=true # blame dbeam@ Review-Url: https://codereview.chromium.org/2639373002 Cr-Commit-Position: refs/heads/master@{#446236} Committed: https://chromium.googlesource.com/chromium/src/+/a41c7aae93287688ee2e3b345b46d70b1e5f8e4b

Patch Set 1 : unify styles/behaviors of .list-button .action-link #

Patch Set 2 : make flash outlink consistent with other outlinking settings-box #

Total comments: 1

Patch Set 3 : move .list-button and on-tap onto the actual action-link to be more easily controlled #

Patch Set 4 : slightly more clean-up #

Total comments: 2

Patch Set 5 : add bug link to clarify comment #

Total comments: 4

Patch Set 6 : move action_link specific stuff to resources/html/action_link_css.html #

Total comments: 8

Patch Set 7 : touch ups #

Patch Set 8 : moving polymer.html to top of import #

Patch Set 9 : add comment for action_link_css #

Total comments: 1

Patch Set 10 : attempt to fix test #

Patch Set 11 : merge #

Patch Set 12 : remove vulcanized file #

Patch Set 13 : attempt test #

Patch Set 14 : move polymer to top of lock_screen files #

Patch Set 15 : move comment about action_link_css to action_likn_css.html #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -93 lines) Patch
M chrome/browser/resources/md_downloads/item.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/device_page/stylus.html View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/internet_page/network_summary_item.html View 1 2 3 4 5 9 10 11 12 13 14 4 chunks +8 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/languages_page/languages_page.html View 1 2 3 4 5 9 10 11 12 13 14 5 chunks +17 lines, -8 lines 0 comments Download
M chrome/browser/resources/settings/on_startup_page/startup_urls_page.html View 1 2 3 4 5 9 10 11 12 13 14 3 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/autofill_section.html View 1 2 3 4 5 9 10 11 12 13 14 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/resources/settings/passwords_and_forms_page/passwords_section.html View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/people_page/lock_screen.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -16 lines 0 comments Download
M chrome/browser/resources/settings/people_page/users_page.html View 1 2 3 4 5 9 10 11 12 13 14 3 chunks +7 lines, -4 lines 0 comments Download
M chrome/browser/resources/settings/printing_page/cups_printers.html View 1 2 3 4 5 9 10 11 12 13 14 4 chunks +5 lines, -13 lines 0 comments Download
M chrome/browser/resources/settings/privacy_page/privacy_page.html View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/resources/settings/reset_page/reset_profile_dialog.html View 1 2 3 4 5 9 10 11 12 13 14 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/search_engines_page/search_engines_page.html View 1 2 3 4 5 6 7 9 10 11 12 13 14 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/resources/settings/settings_shared_css.html View 1 2 3 4 5 6 3 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/resources/settings/site_settings/site_details.html View 1 2 3 4 5 6 7 9 10 11 12 13 14 3 chunks +7 lines, -3 lines 0 comments Download
M chrome/test/data/webui/settings/quick_unlock_authenticate_browsertest_chromeos.js View 1 2 3 4 5 6 7 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/settings/search_engines_page_test.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/webui/settings/startup_urls_page_test.js View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A ui/webui/resources/html/action_link_css.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +28 lines, -0 lines 1 comment Download
M ui/webui/resources/webui_resources.grd View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 58 (38 generated)
scottchen
https://codereview.chromium.org/2639373002/diff/20001/chrome/browser/resources/settings/settings_shared_css.html File chrome/browser/resources/settings/settings_shared_css.html (right): https://codereview.chromium.org/2639373002/diff/20001/chrome/browser/resources/settings/settings_shared_css.html#newcode230 chrome/browser/resources/settings/settings_shared_css.html:230: .list-item.list-button > [is='action-link'] { This is to make the ...
3 years, 11 months ago (2017-01-20 21:18:22 UTC) #2
scottchen
3 years, 11 months ago (2017-01-21 01:49:50 UTC) #10
michaelpg
i'd trust dan's opinion on this https://codereview.chromium.org/2639373002/diff/60001/chrome/browser/resources/settings/device_page/stylus.html File chrome/browser/resources/settings/device_page/stylus.html (right): https://codereview.chromium.org/2639373002/diff/60001/chrome/browser/resources/settings/device_page/stylus.html#newcode25 chrome/browser/resources/settings/device_page/stylus.html:25: <!-- TODO(scottchen): Make ...
3 years, 11 months ago (2017-01-23 06:51:19 UTC) #13
scottchen
https://codereview.chromium.org/2639373002/diff/60001/chrome/browser/resources/settings/device_page/stylus.html File chrome/browser/resources/settings/device_page/stylus.html (right): https://codereview.chromium.org/2639373002/diff/60001/chrome/browser/resources/settings/device_page/stylus.html#newcode25 chrome/browser/resources/settings/device_page/stylus.html:25: <!-- TODO(scottchen): Make a proper a[href].settings-box with On 2017/01/23 ...
3 years, 11 months ago (2017-01-23 18:49:07 UTC) #14
Dan Beam
ok, so, i'd like us to think about how to pull in action links in ...
3 years, 11 months ago (2017-01-23 20:40:09 UTC) #19
scottchen
On 2017/01/23 20:40:09, Dan Beam wrote: > ok, so, i'd like us to think about ...
3 years, 11 months ago (2017-01-23 22:46:07 UTC) #20
scottchen
https://codereview.chromium.org/2639373002/diff/80001/chrome/browser/resources/settings/internet_page/network_summary_item.html File chrome/browser/resources/settings/internet_page/network_summary_item.html (right): https://codereview.chromium.org/2639373002/diff/80001/chrome/browser/resources/settings/internet_page/network_summary_item.html#newcode107 chrome/browser/resources/settings/internet_page/network_summary_item.html:107: <a is="action-link" class="list-button" On 2017/01/23 20:40:09, Dan Beam wrote: ...
3 years, 11 months ago (2017-01-23 23:08:37 UTC) #21
scottchen
On 2017/01/23 23:08:37, scottchen wrote: > https://codereview.chromium.org/2639373002/diff/80001/chrome/browser/resources/settings/internet_page/network_summary_item.html > File chrome/browser/resources/settings/internet_page/network_summary_item.html > (right): > > https://codereview.chromium.org/2639373002/diff/80001/chrome/browser/resources/settings/internet_page/network_summary_item.html#newcode107 ...
3 years, 11 months ago (2017-01-24 02:01:03 UTC) #23
Dan Beam
regarding the CSS: are we actually loading action_link.css for any of these pages now? don't ...
3 years, 11 months ago (2017-01-24 05:25:34 UTC) #28
scottchen
https://codereview.chromium.org/2639373002/diff/120001/chrome/browser/resources/settings/privacy_page/privacy_page.html File chrome/browser/resources/settings/privacy_page/privacy_page.html (right): https://codereview.chromium.org/2639373002/diff/120001/chrome/browser/resources/settings/privacy_page/privacy_page.html#newcode353 chrome/browser/resources/settings/privacy_page/privacy_page.html:353: On 2017/01/24 05:25:33, Dan Beam wrote: > why so ...
3 years, 11 months ago (2017-01-24 19:39:12 UTC) #29
scottchen
On 2017/01/24 05:25:34, Dan Beam wrote: > regarding the CSS: are we actually loading action_link.css ...
3 years, 11 months ago (2017-01-24 19:43:56 UTC) #30
Dan Beam
On 2017/01/24 19:43:56, scottchen wrote: > On 2017/01/24 05:25:34, Dan Beam wrote: > > regarding ...
3 years, 11 months ago (2017-01-24 19:47:28 UTC) #31
Dan Beam
lgtm https://codereview.chromium.org/2639373002/diff/180001/chrome/browser/resources/settings/internet_page/network_summary_item.html File chrome/browser/resources/settings/internet_page/network_summary_item.html (right): https://codereview.chromium.org/2639373002/diff/180001/chrome/browser/resources/settings/internet_page/network_summary_item.html#newcode5 chrome/browser/resources/settings/internet_page/network_summary_item.html:5: <!-- "action_link_css.html" replaces "action_link.css" for MD pages. --> ...
3 years, 11 months ago (2017-01-25 23:47:47 UTC) #44
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/2639373002/300001
3 years, 11 months ago (2017-01-26 01:07:23 UTC) #47
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/220604)
3 years, 11 months ago (2017-01-26 04:08:34 UTC) #49
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/2639373002/300001
3 years, 11 months ago (2017-01-26 05:11:47 UTC) #52
commit-bot: I haz the power
Committed patchset #15 (id:300001) as https://chromium.googlesource.com/chromium/src/+/a41c7aae93287688ee2e3b345b46d70b1e5f8e4b
3 years, 11 months ago (2017-01-26 05:41:51 UTC) #55
Dan Beam
https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/html/action_link_css.html File ui/webui/resources/html/action_link_css.html (right): https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/html/action_link_css.html#newcode3 ui/webui/resources/html/action_link_css.html:3: <link rel="import" href="chrome://resources/polymer/v1_0/paper-styles/color.html"> this needs a <link rel="import" href="chrome://resources/html/polymer.html"> ...
3 years, 11 months ago (2017-01-26 05:43:37 UTC) #56
scottchen
On 2017/01/26 05:43:37, Dan Beam wrote: > https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/html/action_link_css.html > File ui/webui/resources/html/action_link_css.html (right): > > https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/html/action_link_css.html#newcode3 ...
3 years, 11 months ago (2017-01-26 19:51:40 UTC) #57
Dan Beam
3 years, 10 months ago (2017-02-01 02:18:49 UTC) #58
Message was sent while issue was closed.
On 2017/01/26 19:51:40, scottchen wrote:
> On 2017/01/26 05:43:37, Dan Beam wrote:
> >
>
https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/htm...
> > File ui/webui/resources/html/action_link_css.html (right):
> > 
> >
>
https://codereview.chromium.org/2639373002/diff/300001/ui/webui/resources/htm...
> > ui/webui/resources/html/action_link_css.html:3: <link rel="import"
> > href="chrome://resources/polymer/v1_0/paper-styles/color.html">
> > this needs a <link rel="import" href="chrome://resources/html/polymer.html">
> > 
> > you should not often need to the order of the imports (like you did) for a
> test
> > or something.  typically alphabetical should work.  this file is not loading
> > polymer.html so it's loading polymer directly without setting up a config.
> 
> Hmm, I've had to load polymer.html before action_link_css.html for
> lock_screen.html and search_engine.html,

you shouldn't if you put a polymer.html import in action_link_css.html itself

> otherwise their corresponding
> browser_tests will fail when checking visibility/existence of certain
elements.
> I thought it was because the <style> module import doesn't work
> deterministically if polymer's not included first.. was talking to dpapad@
> yesterday and he mentioned having to put polymer.html on top of file before to
> get tests working as well.

try adding the import first and let's see if it works

Powered by Google App Engine
This is Rietveld 408576698