|
|
Created:
5 years ago by dpapad Modified:
5 years ago Reviewers:
dschuyler CC:
arv+watch_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, Dan Beam, michaelpg+watch-md-settings_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. |
DescriptionMD Settings: Adjusting reset-page dialogs styling to match latest mocks.
Refactor both dialogs such that CSS styles can be shared
between them (see reset_page_dialog.css).
BUG=546840
Committed: https://crrev.com/23e1aae3bda7cab5146673b299c62fa28bf54532
Cr-Commit-Position: refs/heads/master@{#363044}
Patch Set 1 #Patch Set 2 : Tweaks #
Total comments: 12
Patch Set 3 : Addressing comments #Patch Set 4 : rebase #
Messages
Total messages: 38 (20 generated)
Description was changed from ========== MD Settings: Adjusting reset profile and powerwash styling. BUG=546840 ========== to ========== MD Settings: Adjusting dialogs styling. BUG=546840 ==========
Patchset #2 (id:20001) has been deleted
Description was changed from ========== MD Settings: Adjusting dialogs styling. BUG=546840 ========== to ========== MD Settings: Adjusting dialogs styling to match latest mocks. Refactor both dialogs such that CSS styles can be shared between them (see reset_page_dialog.css). BUG=546840 ==========
dpapad@chromium.org changed reviewers: + dschuyler@chromium.org
Before and after screenshots at http://imgur.com/a/bwCLf. These changes bring the dialogs much closer to the mocks, but not 100%, because I am still waiting for some clarifications.
Description was changed from ========== MD Settings: Adjusting dialogs styling to match latest mocks. Refactor both dialogs such that CSS styles can be shared between them (see reset_page_dialog.css). BUG=546840 ========== to ========== MD Settings: Adjusting reset-page dialogs styling to match latest mocks. Refactor both dialogs such that CSS styles can be shared between them (see reset_page_dialog.css). BUG=546840 ==========
I'm hoping we can reduce separation of css definitions. Can some of these be added to settings_page.css to make styling more widely available (and used)? https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:11: .dialog-title { Would .settings-box work here? https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { Let's change this to something like .highlight-button or .default-button and move it into settings_page.css. It would be cool to have this set across all MD settings pages consistently.
https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:11: .dialog-title { On 2015/12/02 at 01:02:01, dschuyler wrote: > Would .settings-box work here? I thought about this but it seems that settings-box and dialog-title share very little. Basically they only share the fact that there is a border (either top or bottom), but everything else is different (margin/padding/min-height). Moreover, having a settings-box class within a modal dialog seemed more confusing than it's worth. https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { On 2015/12/02 at 01:02:01, dschuyler wrote: > Let's change this to something like .highlight-button or .default-button and move it into settings_page.css. It would be cool to have this set across all MD settings pages consistently. I am not opposed to this, but I believe it is better done as a CSS refactoring when we have concrete examples of buttons across different UIs that we know should be styled the same. Looked through the mocks and I do see some candidates (People-Cros section has some "Done" buttons), but those sections have not been implemented yet. Also when that time comes, we might want to have greater granularity by having something like checkbox.css, button.css, dropdown.css, instead of dumping things to settings_page.css.
excuse the drive-by https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:11: .dialog-title { On 2015/12/02 03:07:49, dpapad wrote: > On 2015/12/02 at 01:02:01, dschuyler wrote: > > Would .settings-box work here? > > I thought about this but it seems that settings-box and dialog-title share very > little. Basically they only share the fact that there is a border (either top or > bottom), but everything else is different (margin/padding/min-height). Moreover, > having a settings-box class within a modal dialog seemed more confusing than > it's worth. agreed ^ we could compose out a "top-border" or "separator" class for the common functionality, but I don't see a point. if we really care, we could use a --css-var for the color or border, but this may have performance issues. https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:26: -webkit-padding-start: 24px; FYI: I don't disagree with what you're doing, but padding-left/right work fine when these are equal (i.e. directionality agnostic) https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { On 2015/12/02 03:07:49, dpapad wrote: > On 2015/12/02 at 01:02:01, dschuyler wrote: > > Let's change this to something like .highlight-button or .default-button and > move it into settings_page.css. It would be cool to have this set across all MD > settings pages consistently. > > I am not opposed to this, but I believe it is better done as a CSS refactoring > when we have concrete examples of buttons across different UIs that we know > should be styled the same. Looked through the mocks and I do see some candidates > (People-Cros section has some "Done" buttons), but those sections have not been > implemented yet. Also when that time comes, we might want to have greater > granularity by having something like checkbox.css, button.css, dropdown.css, > instead of dumping things to settings_page.css. fine with per-component css files, also fine with deferring until meta-patterns emerge (2+ users of code)
Friendly ping. Anything left to address here?
https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/powerwash_dialog.html (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/powerwash_dialog.html:17: <div class="layout center horizontal"> The style guide suggests not using inlined layout center horizontal. https://docs.google.com/document/d/1G0t519y_cSW4etXVwruR145abZH0N5-9R7JyejzVo... https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { On 2015/12/02 03:07:49, dpapad wrote: > On 2015/12/02 at 01:02:01, dschuyler wrote: > > Let's change this to something like .highlight-button or .default-button and > move it into settings_page.css. It would be cool to have this set across all MD > settings pages consistently. > > I am not opposed to this, but I believe it is better done as a CSS refactoring > when we have concrete examples of buttons across different UIs that we know > should be styled the same. Looked through the mocks and I do see some candidates > (People-Cros section has some "Done" buttons), but those sections have not been > implemented yet. Also when that time comes, we might want to have greater > granularity by having something like checkbox.css, button.css, dropdown.css, > instead of dumping things to settings_page.css. Nit: I feel that "cancel" is a bit over-specific -- even if it's kept in this file.
https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/powerwash_dialog.html (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/powerwash_dialog.html:17: <div class="layout center horizontal"> On 2015/12/02 at 21:45:22, dschuyler wrote: > The style guide suggests not using inlined layout center horizontal. > https://docs.google.com/document/d/1G0t519y_cSW4etXVwruR145abZH0N5-9R7JyejzVo... Done. https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { On 2015/12/02 at 21:45:22, dschuyler wrote: > On 2015/12/02 03:07:49, dpapad wrote: > > On 2015/12/02 at 01:02:01, dschuyler wrote: > > > Let's change this to something like .highlight-button or .default-button and > > move it into settings_page.css. It would be cool to have this set across all MD > > settings pages consistently. > > > > I am not opposed to this, but I believe it is better done as a CSS refactoring > > when we have concrete examples of buttons across different UIs that we know > > should be styled the same. Looked through the mocks and I do see some candidates > > (People-Cros section has some "Done" buttons), but those sections have not been > > implemented yet. Also when that time comes, we might want to have greater > > granularity by having something like checkbox.css, button.css, dropdown.css, > > instead of dumping things to settings_page.css. > > Nit: I feel that "cancel" is a bit over-specific -- even if it's kept in this file. I am a bit confused by the suggested naming (highlight/default button). The "cancel" button is not highlighted or default in any way. I have named the highlighted button (the one having blue background) as "action-button" to make it generic, and it is the "reset" in the reset dialog and "restart" in the powerwash dialog. The cancel-button class always refers to a button with text "Cancel" in both dialogs where it is currently used. Also the dialogs which will reuse this CSS file very soon are the ones at https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Inner%20Pag..., which both have a "Cancel" button. Can you suggest a name that you think it would be better? other-button?
https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... File chrome/browser/resources/settings/reset_page/reset_page_dialog.css (right): https://codereview.chromium.org/1482573002/diff/40001/chrome/browser/resource... chrome/browser/resources/settings/reset_page/reset_page_dialog.css:36: .cancel-button { On 2015/12/02 22:21:59, dpapad wrote: > On 2015/12/02 at 21:45:22, dschuyler wrote: > > On 2015/12/02 03:07:49, dpapad wrote: > > > On 2015/12/02 at 01:02:01, dschuyler wrote: > > > > Let's change this to something like .highlight-button or .default-button > and > > > move it into settings_page.css. It would be cool to have this set across > all MD > > > settings pages consistently. > > > > > > I am not opposed to this, but I believe it is better done as a CSS > refactoring > > > when we have concrete examples of buttons across different UIs that we know > > > should be styled the same. Looked through the mocks and I do see some > candidates > > > (People-Cros section has some "Done" buttons), but those sections have not > been > > > implemented yet. Also when that time comes, we might want to have greater > > > granularity by having something like checkbox.css, button.css, dropdown.css, > > > instead of dumping things to settings_page.css. > > > > Nit: I feel that "cancel" is a bit over-specific -- even if it's kept in this > file. > > I am a bit confused by the suggested naming (highlight/default button). The > "cancel" button is not > highlighted or default in any way. I have named the highlighted button (the one > having blue background) > as "action-button" to make it generic, and it is the "reset" in the reset dialog > and "restart" in the > powerwash dialog. > > The cancel-button class always refers to a button with text "Cancel" in both > dialogs where it is currently used. > Also the dialogs which will reuse this CSS file very soon are the ones at > https://folio.googleplex.com/chrome-ux-specs-and-sources/Chrome%20Inner%20Pag..., > which both have a "Cancel" button. Can you suggest a name that you think it > would be better? other-button? why not just action-button or default-button for the one that we want users to click? (note: some dialogs wont have a default) also, I know webui hasn't been a great example to follow considering our tech debt, but this particular argument could probably just be solved by following an existing example: https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources... https://code.google.com/p/chromium/codesearch#chromium/src/ui/webui/resources...
I'll look into this further and check on non-cancel buttons in dialogs. For now, that doesn't need to hold up this CL. lgtm
The CQ bit was checked by dpapad@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482573002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator...) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...) win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_comp...)
The CQ bit was checked by dpapad@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482573002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482573002/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by dpapad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dschuyler@chromium.org Link to the patchset: https://codereview.chromium.org/1482573002/#ps100001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482573002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482573002/100001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_comp...) mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_r...) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
Patchset #6 (id:120001) has been deleted
Patchset #7 (id:160001) has been deleted
Patchset #6 (id:140001) has been deleted
Patchset #5 (id:100001) has been deleted
Patchset #4 (id:80001) has been deleted
The CQ bit was checked by dpapad@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from dschuyler@chromium.org Link to the patchset: https://codereview.chromium.org/1482573002/#ps180001 (title: "rebase")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1482573002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1482573002/180001
Message was sent while issue was closed.
Committed patchset #4 (id:180001)
Message was sent while issue was closed.
Description was changed from ========== MD Settings: Adjusting reset-page dialogs styling to match latest mocks. Refactor both dialogs such that CSS styles can be shared between them (see reset_page_dialog.css). BUG=546840 ========== to ========== MD Settings: Adjusting reset-page dialogs styling to match latest mocks. Refactor both dialogs such that CSS styles can be shared between them (see reset_page_dialog.css). BUG=546840 Committed: https://crrev.com/23e1aae3bda7cab5146673b299c62fa28bf54532 Cr-Commit-Position: refs/heads/master@{#363044} ==========
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/23e1aae3bda7cab5146673b299c62fa28bf54532 Cr-Commit-Position: refs/heads/master@{#363044} |