Toggle should be swipe-able

RESOLVED WORKSFORME

Status

Firefox OS
Gaia
P1
normal
RESOLVED WORKSFORME
4 years ago
3 years ago

People

(Reporter: epang, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: visual design, visual-design, jian)

(Reporter)

Description

4 years ago
On/off toggles should also be swipeable.  Sergi, is this something we can add into the building blocks?
(Reporter)

Comment 1

4 years ago
Hi Ismael, is it possible to make our toggles swipe-able? It's a little strange that they switch with a tap when the user will naturally swipe.
Flags: needinfo?(igonzaleznicolas)
Yep, we can do it, but as the headers.css "inteligent" text-overflow in 908300 we will need some js to make it work.
So we must create a library inside shared/js/ to manage it, or may add some js support in the Building Blocks, is more a problem on how to do it than actually doing it..
Flags: needinfo?(igonzaleznicolas)
Hey guys, seems that we are going to start needing some js behaviour in the Building Blocks, (see also #908300).
How do you think we should manage this?
Flags: needinfo?(kaze)
Flags: needinfo?(jmcf)
Flags: needinfo?(21)
(Reporter)

Comment 4

4 years ago
(In reply to Ismael Gonzalez [:basiclines] from comment #2)
> Yep, we can do it, but as the headers.css "inteligent" text-overflow in
> 908300 we will need some js to make it work.
> So we must create a library inside shared/js/ to manage it, or may add some
> js support in the Building Blocks, is more a problem on how to do it than
> actually doing it..

Great, thanks for helping get these items implemented Ismael!
(Reporter)

Updated

4 years ago
Assignee: sergiov → nobody

Updated

4 years ago
Flags: needinfo?(jmcf)
(Reporter)

Comment 5

4 years ago
(In reply to Eric Pang [:epang] from comment #4)
> (In reply to Ismael Gonzalez [:basiclines] from comment #2)
> > Yep, we can do it, but as the headers.css "inteligent" text-overflow in
> > 908300 we will need some js to make it work.
> > So we must create a library inside shared/js/ to manage it, or may add some
> > js support in the Building Blocks, is more a problem on how to do it than
> > actually doing it..
> 
> Great, thanks for helping get these items implemented Ismael!

Hey Tim, 

It would be great to have swipeable switches, is this something you can help move forward? Thanks!
Flags: needinfo?(timdream)
(Reporter)

Updated

4 years ago
blocking-b2g: --- → 1.3?
Whiteboard: visual design, visual-design → visual design, visual-design, jian
Component: Gaia::Bluetooth File Transfer → Gaia
I actually don't know who is in charge of building blocks now, but I personally would like to see this gets fixed too.
Flags: needinfo?(timdream)
Once web components will land (bug 811542) it will be fairly trivial to implement such a behavior on top of your element. IMO we should wait for it to be ready before doing that.
Flags: needinfo?(21)
I can’t agree more with Vivien: this is a very typical use case for Web Components, I don’t feel there’s an emergency to develop a clunky solution until bug 811542 lands.
Flags: needinfo?(kaze)
Vivien,

bug 811542 has been minused. If this is severe enough we'll need to make 811542 a 1.3? as well.
Flags: needinfo?(21)
(In reply to Preeti Raghunath(:Preeti) from comment #9)
> Vivien,
> 
> bug 811542 has been minused. If this is severe enough we'll need to make
> 811542 a 1.3? as well.

I don't see so. This is a pure UX issue.
Flags: needinfo?(21)
(Reporter)

Comment 11

3 years ago
Closing based on comment 7 by vivien. This can wait for web components.
Status: NEW → RESOLVED
Last Resolved: 3 years ago
Resolution: --- → WORKSFORME

Updated

3 years ago
blocking-b2g: 1.3? → ---
You need to log in before you can comment on or make changes to this bug.