Closed Bug 880567 Opened 11 years ago Closed 11 years ago

[Settings] Airplane mode and geolocation toggles are translucent always

Categories

(Firefox OS Graveyard :: Gaia::Settings, defect)

x86
macOS
defect
Not set
normal

Tracking

(blocking-b2g:leo+, b2g18 verified, b2g18-v1.0.1 unaffected, b2g-v1.1hd fixed)

VERIFIED FIXED
blocking-b2g leo+
Tracking Status
b2g18 --- verified
b2g18-v1.0.1 --- unaffected
b2g-v1.1hd --- fixed

People

(Reporter: arthurcc, Assigned: arnau)

References

Details

(Keywords: regression, Whiteboard: leorun4)

Attachments

(2 files)

Attached image screenshot
STR:
1. Launch settings app.
2. Check toggles for airplane mode and geolocation.

Current behavior:
The toggles are translucent always

Expected behavior:
The toggles are solid.
Assignee: nobody → arnau
Attached file Patch
Attachment #760314 - Flags: review?(igonzaleznicolas)
Comment on attachment 760314 [details]
Patch

Cosmetic changes, r+
Attachment #760314 - Flags: review?(igonzaleznicolas) → review+
Comment on attachment 760314 [details]
Patch

NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings.

[Approval Request Comment]
Bug caused by (feature/regressing bug #): 
User impact if declined: 2 Switches in settings has some transparency that should not have, and they look disabled. The wanted effect for this 2 switches was to avoid initial animation when first entering in settings app, but instead an opacity was applied. This should land in V1-train together with bug: 875239 which already has the gaia-v1 approval
Testing completed: yes
Risk to taking this patch (and alternatives if risky): very low, it's only the opacity value in CSS.
String or UUID changes made by this patch:
Attachment #760314 - Flags: approval-gaia-v1?
Comment on attachment 760314 [details]
Patch

We're past the point of approval-gaia-v1 noms in 1.1's schedule. If you feel this is a critical blocker, please set blocking-b2g:leo+
Attachment #760314 - Flags: approval-gaia-v1? → approval-gaia-v1-
blocking-b2g:leo?*
blocking-b2g: --- → leo?
Blocking on this only because its a regression and the risk is very low.
blocking-b2g: leo? → leo+
Keywords: checkin-needed
--> jhford for landing on master (I think?) and v1-train.
Flags: needinfo?(jhford)
Nope, only uplifting.  There are two new selectors added to the css rule that's being changed which is causing a merge conflict.  I assume that it's a simple resolution, but I'd rather have someone who knows the code take care of it.
Flags: needinfo?(jhford) → needinfo?(arnau)
Keywords: checkin-needed
It's a very simple patch, in:
label input[type="checkbox"][data-type="switch"].uninit + span {
   transition: none;
   opacity: 0.4;
}
You only have to remove:
opacity: 0.4;

As you can see here: https://github.com/mozilla-b2g/gaia/pull/10289/files
Thanks.
Flags: needinfo?(arnau)
(In reply to arnau from comment #10)
> It's a very simple patch, in:
> label input[type="checkbox"][data-type="switch"].uninit + span {
>    transition: none;
>    opacity: 0.4;
> }
> You only have to remove:
> opacity: 0.4;
> 
> As you can see here: https://github.com/mozilla-b2g/gaia/pull/10289/files
> Thanks.

You may need one of Settings app's maintainer to review and merge/uplift the code.
Comment on attachment 760314 [details]
Patch

Arthur, can you take a look of this patch and help on merge to master if r+? Thanks.
Attachment #760314 - Flags: review?(arthur.chen)
Comment on attachment 760314 [details]
Patch

The patch was already merged when Ismael gave an r+.

master: https://github.com/mozilla-b2g/gaia/commit/49d7cee07f3d8d18e28ef931271d5d23278216d5

I'll help uplift it to v1-train.
Attachment #760314 - Flags: review?(arthur.chen) → review+
The bug depends on bug 875239 that is not resolved in v1-train yet.
No longer blocks: 875239
Depends on: 875239
Arthur, I have solved 875239 in v1-train. I had this bug as blocker not to uplift 875239 until we had gaia approval for this one as well. Thanks!
I thought we can land this patch in v1-train because this bug is leo+. Is that correct?
Yes, is leo +, I just wanted to uplift both bugs at the same time.
Now 875239 is in v1-train and now 880567 has to be uplifted as well.
Thanks!
When the user goes to Settings and scroll up and down, the user is able to view the toggle button colors are lighter for "Airplane" and "GPS" than that of "USB storage" button.

This issue is still found on leo device.
Leo Build ID: 
Build ID: 20130625070217
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/29933d1937db
Gaia: 1436e2778b90bd74635b0b94d1cf8ccb0d71b60c
Platform Version: 18.1
RIL Version: 01.01.00.019.138
Whiteboard: leorun4
Bug 875239 has been uplifted. Marking this one as resolved/fixed so that it can be uplifted, too.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Uplifted 49d7cee07f3d8d18e28ef931271d5d23278216d5 to:
v1-train: 0daca2d6df6abece2c6dbbcd4aeeda0579f2463d
Gecko  http://hg.mozilla.org/releases/mozilla-b2g18/rev/282b5c37cf8d
Gaia   e2ef782119b7e79fc62c48d36f0c36909d982988
BuildID 20130712070210
Version 18.0

Not seeing the issue on today's nightly.  Closing.
Status: RESOLVED → VERIFIED
Verified as fixed on Leo with variables below. These toggles appear the same as other toggles when toggled off. They no longer seem to be confused with being disabled.

Environmental Variables
Build ID: 20130717070237
Gecko: http://hg.mozilla.org/releases/mozilla-b2g18/rev/582e3a7018b0
Gaia: c506c50adaaebcf729ac3c27887ba2931ab79040
Platform Version: 18.1
RIL Version: 01.01.00.019.158
v1.1.0hd: 0daca2d6df6abece2c6dbbcd4aeeda0579f2463d
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: