|
|
Chromium Code Reviews|
Created:
5 years, 2 months ago by dschuyler Modified:
5 years, 1 month ago CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, arv+watch_chromium.org Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
Description[MD settings] adding settings-row class
'settings-row' shows a row of controls for a setting. This is used as
a simple container style for UI group that is smaller than a page or section,
but larger than a single button or slider. The row may contain a left part,
a right part or both. Elements within left or right will be pushed to the
respective ends of the row.
BUG=425627
Committed: https://crrev.com/808be52137d2f1d070140d1885e3994a6e4fb2f9
Cr-Commit-Position: refs/heads/master@{#357897}
Patch Set 1 #
Total comments: 2
Patch Set 2 : review nit #
Total comments: 2
Patch Set 3 : changing to settings-row class #Patch Set 4 : reversed first/last of type #Patch Set 5 : added height and icon padding #
Total comments: 2
Patch Set 6 : review nit #
Total comments: 3
Patch Set 7 : changed height to min-height 20px #Messages
Total messages: 35 (9 generated)
Description was changed from ========== [MD settings] adding settings-row element BUG=425627 ========== to ========== [MD settings] adding settings-row element 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a <left>, a <right> or both. Elements withing left or right will be pushed to the respective ends of the row. BUG=425627 ==========
dschuyler@chromium.org changed reviewers: + stevenjb@chromium.org
https://codereview.chromium.org/1409373007/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/settings_page/settings_row.css (right): https://codereview.chromium.org/1409373007/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/settings_page/settings_row.css:9: padding: 8px 16px 8px 16px; nit: I think this can be 'padding: 8px 16px'. Not actually sure if that is preferred.
I would suggest putting this in c/b/r/settings/controls.
dbeam@chromium.org changed reviewers: + dbeam@chromium.org
why is this better than a class? https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... File chrome/browser/resources/settings/settings_page/settings_row.js (right): https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... chrome/browser/resources/settings/settings_page/settings_row.js:16: * <left> custom tags should have-dashes
(as in, .left, .right, .row)
On 2015/10/20 18:31:51, Dan Beam wrote: > why is this better than a class? I'll change it to a set of classes. (I thought maybe an element could swap the left and right in rtl languages; and an element looked more future-proof). > > https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... > File chrome/browser/resources/settings/settings_page/settings_row.js (right): > > https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... > chrome/browser/resources/settings/settings_page/settings_row.js:16: * <left> > custom tags should have-dashes
https://codereview.chromium.org/1409373007/diff/1/chrome/browser/resources/se... File chrome/browser/resources/settings/settings_page/settings_row.css (right): https://codereview.chromium.org/1409373007/diff/1/chrome/browser/resources/se... chrome/browser/resources/settings/settings_page/settings_row.css:9: padding: 8px 16px 8px 16px; On 2015/10/20 18:19:21, stevenjb wrote: > nit: I think this can be 'padding: 8px 16px'. Not actually sure if that is > preferred. We may need to update the padding in the future. This is intended to get row wrappers all through the settings - then the padding and such can be adjusted to match the final UI spec. Done. https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... File chrome/browser/resources/settings/settings_page/settings_row.js (right): https://codereview.chromium.org/1409373007/diff/20001/chrome/browser/resource... chrome/browser/resources/settings/settings_page/settings_row.js:16: * <left> On 2015/10/20 18:31:51, Dan Beam wrote: > custom tags should have-dashes Ah, I knew about dashes for polymer module names - thanks for the tip about the dashes for all custom tags. Maybe left-side, right-side or Maybe a custom property? i.e. <settings-row> <div left> ...
I've removed the element and added a class.
Nice. lgtm.
michaelpg@chromium.org changed reviewers: + michaelpg@chromium.org
I already styled these rows using ".item-list paper-item" to provide padding, borders, etc. Can you de-dupe those styles with .settings-row?
On 2015/10/20 23:39:00, michaelpg wrote: > I already styled these rows using ".item-list paper-item" to provide padding, > borders, etc. Can you de-dupe those styles with .settings-row? I've added CL 1418553005 to follow this CL with those change.
On 2015/10/23 21:35:11, dschuyler wrote: > On 2015/10/20 23:39:00, michaelpg wrote: > > I already styled these rows using ".item-list paper-item" to provide padding, > > borders, etc. Can you de-dupe those styles with .settings-row? > > I've added CL 1418553005 to follow this CL with those change. Michael, I've added the height and icon padding here (that you'd asked about in CL 1418553005).
lgtm https://codereview.chromium.org/1409373007/diff/80001/chrome/browser/resource... File chrome/browser/resources/settings/settings_page/settings_page.css (right): https://codereview.chromium.org/1409373007/diff/80001/chrome/browser/resource... chrome/browser/resources/settings/settings_page/settings_page.css:91: nit: remove extra newline
https://codereview.chromium.org/1409373007/diff/80001/chrome/browser/resource... File chrome/browser/resources/settings/settings_page/settings_page.css (right): https://codereview.chromium.org/1409373007/diff/80001/chrome/browser/resource... chrome/browser/resources/settings/settings_page/settings_page.css:91: On 2015/10/28 20:35:29, michaelpg wrote: > nit: remove extra newline Done.
please update the CL description/title https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... File chrome/browser/resources/settings/settings_page/settings_page.css (right): https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... chrome/browser/resources/settings/settings_page/settings_page.css:78: height: 40px; /* 24px + 2x8px padding. */ does this assume we never have multi-line content?
also "Elements withing" -> within
https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... File chrome/browser/resources/settings/settings_page/settings_page.css (right): https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... chrome/browser/resources/settings/settings_page/settings_page.css:78: height: 40px; /* 24px + 2x8px padding. */ On 2015/10/28 20:55:56, Dan Beam wrote: > does this assume we never have multi-line content? Michael, should this be min-height instead of height? And should it be 24px (is the padding handled by the padding: value below)?
Description was changed from ========== [MD settings] adding settings-row element 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a <left>, a <right> or both. Elements withing left or right will be pushed to the respective ends of the row. BUG=425627 ========== to ========== [MD settings] adding settings-row element 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a left part, a right part or both. Elements within left or right will be pushed to the respective ends of the row. BUG=425627 ==========
Sorry, I never sent this draft! https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... File chrome/browser/resources/settings/settings_page/settings_page.css (right): https://codereview.chromium.org/1409373007/diff/100001/chrome/browser/resourc... chrome/browser/resources/settings/settings_page/settings_page.css:78: height: 40px; /* 24px + 2x8px padding. */ On 2015/10/28 21:02:07, dschuyler wrote: > On 2015/10/28 20:55:56, Dan Beam wrote: > > does this assume we never have multi-line content? > > Michael, should this be min-height instead of height? > And should it be 24px (is the padding handled by the padding: value below)? yeah, I guess min-height should be 20px (the specs now show 10px top and bottom padding). The spec conflicts with itself though so let's not spend too much time on it -- if it looks good, ship it :)
updated with min-height. PTAL
On 2015/11/02 19:04:45, dschuyler wrote: > updated with min-height. PTAL ping
On 2015/10/28 20:55:56, Dan Beam wrote: > please update the CL description/title pong
Description was changed from ========== [MD settings] adding settings-row element 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a left part, a right part or both. Elements within left or right will be pushed to the respective ends of the row. BUG=425627 ========== to ========== [MD settings] adding settings-row class 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a left part, a right part or both. Elements within left or right will be pushed to the respective ends of the row. BUG=425627 ==========
Description was changed from ========== [MD settings] adding settings-row class 'settings-row' shows a row of controls for a setting. This is used as a simple container for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a left part, a right part or both. Elements within left or right will be pushed to the respective ends of the row. BUG=425627 ========== to ========== [MD settings] adding settings-row class 'settings-row' shows a row of controls for a setting. This is used as a simple container style for UI group that is smaller than a page or section, but larger than a single button or slider. The row may contain a left part, a right part or both. Elements within left or right will be pushed to the respective ends of the row. BUG=425627 ==========
On 2015/11/04 19:07:24, Dan Beam wrote: > On 2015/10/28 20:55:56, Dan Beam wrote: > > please update the CL description/title > > pong I've now also changed element to class (in addition to the prior change in the description).
lgtm
The CQ bit was checked by dschuyler@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from stevenjb@chromium.org, michaelpg@chromium.org Link to the patchset: https://codereview.chromium.org/1409373007/#ps120001 (title: "changed height to min-height 20px")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1409373007/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1409373007/120001
Message was sent while issue was closed.
Committed patchset #7 (id:120001)
Message was sent while issue was closed.
Patchset 7 (id:??) landed as https://crrev.com/808be52137d2f1d070140d1885e3994a6e4fb2f9 Cr-Commit-Position: refs/heads/master@{#357897} |
