Closed Bug 951080 Opened 11 years ago Closed 10 years ago

[Clock] Adjustment for setting a new or editing an alarm

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(feature-b2g:2.0)

VERIFIED FIXED
1.4 S1 (14feb)
feature-b2g 2.0

People

(Reporter: HHuang, Assigned: mcav)

References

Details

(Whiteboard: [p=1])

Attachments

(5 files, 4 obsolete files)

Remove text-shadow from dropdown buttons, and font-size adjustment.
Blocks: 950212
If possible, could you attach screen shot explaining the issue?
Flags: needinfo?(hhuang)
Attached image Alarm setting screenshot.jpg (obsolete) —
I've attached the screenshot and noted on it, please take a look.
Flags: needinfo?(hhuang)
Thanks for the spec.

Attached patch fix First part of the issue(i.e setting font-size, family and weight for all labels).

Second part:
To remove the text-shadow, I tried using  following way in alarm.css but somehow this seems have no effect on text-shadow.

Ex: To remove text-shadow for Repeat

#repeat-select-menu {
  text-shadow: 0 0;
}

Please let me know your comments.
Attachment #8361041 - Flags: review?(hhuang)
Sorry for the late reply.
If there is no effect on text-shadow, it probably has been removed following common controls… That will be fine.
But, I still need a screenshot to review, I can not install patch on my device.
Thank you!
Attached image Screenshot
Attached screen shot taken which includes 
 a) Changes to fonts for labels as specified in spec
 b) Removing text shadow and setting the fonts to drop-down selection items

BTW,As per the spec, font-weight "medium" to be set for drop-down selection items.

It seems we can set font-weight to only one of these(normal OR bold OR bolder OR lighter)
Could you share the details of which one of these corresponding to medium?

Currently in the attached screen shot I set it as bold. Please confirm it.
Attachment #8361041 - Attachment is obsolete: true
Attachment #8361041 - Flags: review?(hhuang)
Attached screen shot's corresponding patch for reference.

>>Currently in the attached screen shot I set it as bold. Please confirm it.
Sorry,typed wrong earlier.set it as "normal"
Attachment #8362530 - Flags: review?(hhuang)
Would like to know your comments as well.
Flags: needinfo?(m)
Appearance looks OK to me if that's what Helen wants; the patch itself should condense the CSS selectors into one block, rather than a separate block for each ID.
Flags: needinfo?(m)
Attached file Pointer to Github PR
Thanks Marcus for comments.Updated attached patch as per comments.

Helen,
Requesting you to review the patch.
Attachment #8362530 - Attachment is obsolete: true
Attachment #8362530 - Flags: review?(hhuang)
Attachment #8364980 - Flags: review?(hhuang)
Following font-weight we have, I’ve modified the spec. Please set font-weight to drop-down selection items as normal, and item title is normal, too. I also modified the font size. 

Otherwise, I checked the attached you provided, since shadow effect on drop-down items still exist… maybe it inherits the style from somewhere. Could you help to check again?

Thank you!
Attachment #8359671 - Attachment is obsolete: true
So far I couldn't get clue as to why text-shadow properties are not being effected.
Flags: needinfo?(pivanov)
Attached image Screenshot (obsolete) —
Helen, please take a look at this attachment and let me know if this matches the spec you're looking for.

Gnaneswar, you may find it helpful when debugging issues like these to use the Firefox Web Inspector. Its sidebar shows detailed CSS info, such as where styles are being inherited from, whether or not they've been overridden, and other stuff like that. Also, in general, it's best to try to keep the CSS as concise as possible -- i.e. if there are styles that already exist for the elements in question, try to piggyback on those, and omit styles that are already cascading to what you want. Take a look at the patch I've provided and feel free to ask me if you have any questions, I'm happy to explain if you have more specific questions about why something works or doesn't work. :-)
Assignee: nobody → m
Status: NEW → ASSIGNED
Attachment #8369583 - Flags: review?(hhuang)
Flags: needinfo?(pivanov)
Attachment #8369583 - Attachment description: Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/15921 → Screenshot
Marcus,
Thanks for the information. I am exploring firefox web inspector.

BTW, I have one comment w.r.t patch.

In timer.css (see code snippet below) text-shadow is being set to zero. I guess after your patch, this statement may not be required. please confirm this.

#timer-sound-menu {
  border-width: 0;

  color: #FFF;
  text-align: left;
  background-color: #4D4D4D;
  text-shadow: 0 0;
}
Flags: needinfo?(m)
Yes, that seems correct.
Flags: needinfo?(m)
Comment on attachment 8369583 [details]
Screenshot

Marcus, thanks for helping :) Font-size and text effect is correct.

Just want to make sure are the font-weight for item's title and drop-down selection items set "Normal" already? They look a bit strong.

Besides, for the third item "sound"... the top of the letter "S" is cropped, maybe it caused by text field, can you check it as well?
Attachment #8369583 - Flags: review?(hhuang) → review-
Attached image screen.png
Ah, I had taken that screenshot from Firefox Nightly, which I forgot renders fonts differently because it doesn't have Fira Sans. Take a look at this screenshot, which I took from on-device, which I think shows that all of the things you mentioned were just glitches from being rendered in Nightly.
Attachment #8369583 - Attachment is obsolete: true
Attachment #8370682 - Flags: review?(hhuang)
(In reply to Marcus Cavanaugh [:mcav] <mcav@mozilla.com> from comment #15)
> Yes, that seems correct.

So, would like to know if it will removed as a part of your patch?
I'll verify that it actually is unnecessary, and then yeah, I'll remove that too.
Whiteboard: [p=1]
Target Milestone: --- → 1.4 S1 (14feb)
Comment on attachment 8370682 [details]
screen.png

Marcus, it looks great! Thank you for clarifying this.
Attachment #8370682 - Flags: review?(hhuang) → review+
Landed in master:

https://github.com/mozilla-b2g/gaia/commit/7c1a4ce0b6ab7e3fb51e0c015a06e5255b2be58b
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
[Verified info]
Gaia      6e71ab4da1b08586ea0c758edb7aa199ee34cd2f
Gecko     https://hg.mozilla.org/mozilla-central/rev/bb030d47c946
BuildID   20140219160202
Version   30.0a1

[Comment]
Appearance looks OK for me, it has not UI issue occurred. I mark it to VERIFIED.
Status: RESOLVED → VERIFIED
Comment on attachment 8364980 [details] [review]
Pointer to Github PR

Bug fixed
Attachment #8364980 - Flags: review?(hhuang) → review-
feature-b2g: --- → 2.0
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: