Before/after screenshots at http://imgur.com/a/Tv4p7. Notes: 1) Before the "Country/Region" text was a floating placeholder inside ...
4 years, 2 months ago
(2016-09-30 22:16:30 UTC)
#5
Before/after screenshots at http://imgur.com/a/Tv4p7.
Notes:
1) Before the "Country/Region" text was a floating placeholder inside the
dropdown. After, it is just a label just like all the other address columns, but
I did not replicate the effect where it gets blue when the dropdown is focused.
Let me know if there is a CSS only way of replicating this.
2) You will notice in the screenshots a slight difference in the left padding
from before/after. This can only be fixed if "-webkit-appearance: none" is used,
so I prefer to address this along with the modification of the arrow which also
requires removing webkit appearance.
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
4 years, 2 months ago
(2016-10-01 00:24:08 UTC)
#6
4 years, 2 months ago
(2016-10-01 00:24:08 UTC)
#7
Dry run: This issue passed the CQ dry run.
dpapad
On 2016/09/30 at 22:16:30, dpapad wrote: > Before/after screenshots at http://imgur.com/a/Tv4p7. > > Notes: > ...
4 years, 2 months ago
(2016-10-03 17:22:25 UTC)
#8
On 2016/09/30 at 22:16:30, dpapad wrote:
> Before/after screenshots at http://imgur.com/a/Tv4p7.
>
> Notes:
> 1) Before the "Country/Region" text was a floating placeholder inside the
dropdown. After, it is just a label just like all the other address columns, but
I did not replicate the effect where it gets blue when the dropdown is focused.
Let me know if there is a CSS only way of replicating this.
>
> 2) You will notice in the screenshots a slight difference in the left padding
from before/after. This can only be fixed if "-webkit-appearance: none" is used,
so I prefer to address this along with the modification of the arrow which also
requires removing webkit appearance.
Friendly ping.
Dan Beam
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html File chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html (right): https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html#newcode23 chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html:23: select.address-column { why does this need the "select" part? ...
4 years, 2 months ago
(2016-10-03 18:27:14 UTC)
#9
Addressed comments. PTAL https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html File chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html (right): https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html#newcode23 chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html:23: select.address-column { On 2016/10/03 at 18:27:14, ...
4 years, 2 months ago
(2016-10-03 21:49:53 UTC)
#10
Addressed comments. PTAL
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resource...
File
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html
(right):
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html:23:
select.address-column {
On 2016/10/03 at 18:27:14, Dan Beam wrote:
> why does this need the "select" part?
This is undoing what the rule right above is doing, only for <select>. So it
needs the "select" to only have affect on the select itself. I could drop the
".address-column" part, but I thought it was clearer to keep it.
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.html:32:
#select-row > div {
On 2016/10/03 at 18:27:14, Dan Beam wrote:
> optional nit: can we just name this like #country-label or something?
>
> "> div" is mildly a bummer because it's enforcing hierarchy and tag name
Done.
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resource...
File
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js
(right):
https://codereview.chromium.org/2382943002/diff/60001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js:71:
Polymer.dom.flush();
On 2016/10/03 at 18:27:14, Dan Beam wrote:
> i still don't like that we have to flush() stuff to avoid a bug, that's 2 bad
things
Changed to this.async(). BTW, this file is already calling Polymer.dom.flush()
at line 105, perhaps this can be removed too (in a future cleanup).
Dan Beam
lgtm https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js File chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js (right): https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js#newcode192 chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js:192: this.countryCode_ = countrySelect.selectedOptions[0].value; can't you just ask for ...
4 years, 2 months ago
(2016-10-03 22:01:57 UTC)
#11
https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js File chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js (right): https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js#newcode192 chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js:192: this.countryCode_ = countrySelect.selectedOptions[0].value; On 2016/10/03 at 22:01:57, Dan Beam ...
4 years, 2 months ago
(2016-10-03 22:15:56 UTC)
#12
https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resource...
File
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js
(right):
https://codereview.chromium.org/2382943002/diff/80001/chrome/browser/resource...
chrome/browser/resources/settings/passwords_and_forms_page/address_edit_dialog.js:192:
this.countryCode_ = countrySelect.selectedOptions[0].value;
On 2016/10/03 at 22:01:57, Dan Beam wrote:
> can't you just ask for countrySelect.value?
> https://jsfiddle.net/d1pg525k/
Done. I just think this is counter-intuitive
select#value is bound to countryCode_ in HTML (one-way binding direction
countryCode_ => select#value). Now in JS we assign select#value to countryCode_,
which is the reverse direction (select#value => countryCode_). It still works,
but confusing IMO (and yes, the confusion originally comes from the fact that
two-way binding does not work for select#value).
dpapad
The CQ bit was checked by dpapad@chromium.org
4 years, 2 months ago
(2016-10-03 23:42:02 UTC)
#13
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/153279)
4 years, 2 months ago
(2016-10-04 02:38:57 UTC)
#17
Issue 2382943002: MD Settings: Migrating add/edit address dropdowns to native select.
(Closed)
Created 4 years, 2 months ago by dpapad
Modified 4 years, 2 months ago
Reviewers: Dan Beam
Base URL:
Comments: 8