Closed
Bug 1060293
Opened 10 years ago
Closed 7 years ago
Remove dialer's buttons.css once gaia-button lands
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Firefox OS Graveyard
Gaia::Dialer
Tracking
(Not tracked)
RESOLVED
WONTFIX
2.2 S10 (17apr)
People
(Reporter: drs, Unassigned)
References
Details
(Whiteboard: [planned-sprint c=6])
Attachments
(1 file)
In bug 1059336, it would have been really helpful to have been able to include shared/style/buttons.css directly to get button styling for free. Unfortunately, the CSS in this file is overly broad and matches several button elements within the dialer which we don't want styled.
For now, we fixed this by copying and pasting some styles from shared/style/buttons.css into apps/communications/dialer/style/buttons.css, and making the selectors less overly broad.
We can fix this two ways:
1) Sanitize the button elements in the dialer, i.e. rename them so that they don't match the button selectors in shared/style/buttons.css
2) Create a gaia_button web component and use this for buttons that we want styled, since this would sandbox the styles.
Updated•10 years ago
|
Assignee: nobody → pacorampas
Reporter | ||
Updated•10 years ago
|
Blocks: dialer-most-wanted
Reporter | ||
Updated•10 years ago
|
Whiteboard: [dialer-most-wanted]
Reporter | ||
Updated•10 years ago
|
Whiteboard: [planned-sprint]
Target Milestone: --- → 2.1 S6 (10oct)
Reporter | ||
Updated•10 years ago
|
Whiteboard: [planned-sprint] → [planned-sprint c=6]
Reporter | ||
Comment 1•10 years ago
|
||
We can get started on this sooner, but I don't think it's doable within this sprint.
Target Milestone: 2.1 S6 (10oct) → 2.1 S7 (Oct24)
Comment 2•10 years ago
|
||
Comment 3•10 years ago
|
||
Comment on attachment 8499526 [details]
patch in github
Hi Doug,
With this patch, I have tried to sanitize the buttons. Now, the visualization is correctly. Could you check it?
Thanks.
Attachment #8499526 -
Flags: feedback?(drs+bugzilla)
Reporter | ||
Comment 4•10 years ago
|
||
Comment on attachment 8499526 [details]
patch in github
Removing `role="button"` breaks a11y. I also think that needing the `[hidden] { display: none; }` rule is a good sign that we're doing something wrong.
Unfortunately, I don't see a way to do this that won't be extremely backwards and awkward. We don't have a gaia_button web component yet, so maybe it's time to introduce that.
I'm a bit surprised that we don't have this already. My guess is that this particular scenario doesn't happen much, and compartmentalizing a button is generally overkill.
Wilson, does this seem reasonable to you?
Attachment #8499526 -
Flags: feedback?(drs+bugzilla) → feedback-
Flags: needinfo?(wilsonpage)
Reporter | ||
Comment 5•10 years ago
|
||
Also bringing in Yura to confirm that we shouldn't be removing `role="button"` attributes.
Flags: needinfo?(yzenevich)
Comment 6•10 years ago
|
||
(In reply to Doug Sherk (:drs) from comment #5)
> Also bringing in Yura to confirm that we shouldn't be removing
> `role="button"` attributes.
Yeah in case where's it's applied on a div it will break a11y. It is redundant with the button element so should be OK to remove (unless there's some styling that depends on it and will be updated after bug 1074224 lands, it updates this block too so [role="button"] would no longer affect the styling).
Flags: needinfo?(yzenevich)
Comment 7•10 years ago
|
||
(In reply to Doug Sherk (:drs) from comment #4)
> Comment on attachment 8499526 [details]
> patch in github
>
> Removing `role="button"` breaks a11y. I also think that needing the
> `[hidden] { display: none; }` rule is a good sign that we're doing something
> wrong.
>
> Unfortunately, I don't see a way to do this that won't be extremely
> backwards and awkward. We don't have a gaia_button web component yet, so
> maybe it's time to introduce that.
>
> I'm a bit surprised that we don't have this already. My guess is that this
> particular scenario doesn't happen much, and compartmentalizing a button is
> generally overkill.
>
> Wilson, does this seem reasonable to you?
<gaia-button> is coming in v2.2. All apps that use existing buttons.css will be required to migrate to the web-component. Perhaps it's best to wait for the component to land on master?
Flags: needinfo?(wilsonpage)
Reporter | ||
Comment 8•10 years ago
|
||
(In reply to Wilson Page [:wilsonpage] from comment #7)
> <gaia-button> is coming in v2.2. All apps that use existing buttons.css will
> be required to migrate to the web-component. Perhaps it's best to wait for
> the component to land on master?
Great! Is there a bug tracking this?
Comment 9•10 years ago
|
||
(In reply to Doug Sherk (:drs) from comment #8)
> (In reply to Wilson Page [:wilsonpage] from comment #7)
> > <gaia-button> is coming in v2.2. All apps that use existing buttons.css will
> > be required to migrate to the web-component. Perhaps it's best to wait for
> > the component to land on master?
>
> Great! Is there a bug tracking this?
It's still in the early prototyping stage, but there will be bugs assigned once it's time to land in Gaia apps.
Reporter | ||
Comment 10•10 years ago
|
||
(In reply to Wilson Page [:wilsonpage] from comment #9)
> It's still in the early prototyping stage, but there will be bugs assigned
> once it's time to land in Gaia apps.
Ok, since we don't have a way to track this, I'm setting a needinfo on you until bugs are filed.
Paco: Looks like there's nothing to do here until that's ready.
Summary: Remove dialer's buttons.css and use styling from shared/styles/buttons.css instead → Remove dialer's buttons.css once gaia-button lands
Target Milestone: 2.1 S7 (Oct24) → ---
Updated•10 years ago
|
Assignee: pacorampas → nobody
Reporter | ||
Updated•10 years ago
|
Target Milestone: --- → 2.2 S10 (17apr)
Reporter | ||
Updated•10 years ago
|
Assignee: nobody → gsvelto
Updated•9 years ago
|
Assignee: gsvelto → nobody
Comment 11•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•