Closed Bug 1018340 Opened 10 years ago Closed 10 years ago

Gaia edit mode header is not exclusively visible

Categories

(Firefox OS Graveyard :: Gaia, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(ux-b2g:2.1)

RESOLVED FIXED
ux-b2g 2.1

People

(Reporter: eeejay, Assigned: eeejay)

References

Details

(Keywords: access)

Attachments

(1 file)

The edit header is not properly hidden (a conflicing rule between the transition and hidden attribute).

When it is toggled, the regular header is not hidden, and is simply obscured.
I think it would be good to restructure the header component to support this. I think it makes sense to have the two headers to be able to work together, without having specific app code, or relying on specific ordering in the app dom.

Eitan and I spoke over IRC, and one workaround that might be ok for now would be something like: 

gaia-header[edit].active + gaia-header { visibility: hidden; }
(In reply to Kevin Grandon :kgrandon from comment #1)
> I think it would be good to restructure the header component to support
> this. I think it makes sense to have the two headers to be able to work
> together, without having specific app code, or relying on specific ordering
> in the app dom.
> 
> Eitan and I spoke over IRC, and one workaround that might be ok for now
> would be something like: 
> 
> gaia-header[edit].active + gaia-header { visibility: hidden; }

I think that may be problematic. First, you would need to assure that the z-index of the preceding edit header is higher than the non-edit header. If you switched the order, you can't style the non-edit header automatically. So this doesn't seem to really simplify things extremely or make them less error prone.

I think embedding the edit header in the non-edit header may be worth considering.
This patch just fixes the styling, I think we still need to figure out a better approach than the current decoupled one.
Attachment #8431825 - Flags: review?(kgrandon)
Comment on attachment 8431825 [details] [review]
Link to Github pull-request: https://github.com/mozilla-b2g/gaia/pull/19836

Seems fine to land for now, but I have some question about <content id="gaia-header-edit">. I don't think that should be there.

Let's also either keep this bug open to track the work for the better approach, either in this bug or in another.
Attachment #8431825 - Flags: review?(kgrandon) → review+
I would leave it as it is, the only thing I see wrong here is in:
<gaia-header id="header2" ... hide>
`hide` should be `hidden` that way is initially hidden :) 

Other thoughts:
- We could have [edit] so we get rid of skin="organic" and maybe makes the component easier to read.
- I would not use gaia-header + gaia-header selector, as we don't know if any of them is wrapped in container.
Marking this bug as required for 2.1 since the web components Header is the one committed web component for 2.1. Other web components for 2.2 depend on Header going first. 

Sorry for doing this late; Hema just brought this bug to my attention today, but it reflects agreed scope and is in the agreed 2.1 plan.
ux-b2g: --- → 2.1
This appears to have landed a while back.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: