Closed Bug 1069599 Opened 10 years ago Closed 10 years ago

Usage: Settings screen: sub-headers should be level 2.

Categories

(Firefox OS Graveyard :: Gaia::Cost Control, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: yzen, Assigned: mitchellvanderhoeff, Mentored)

References

Details

(Keywords: access, Whiteboard: [b2ga11y p=1][good first bug][lang=html])

Attachments

(1 file, 1 obsolete file)

Right now the settings sub-headers in the Usage app are not announced and only text is. It should actually be assigned the right role and level.
Mentor: yzenevich
Whiteboard: [b2ga11y p=1] → [b2ga11y p=1][good first bug]
Whiteboard: [b2ga11y p=1][good first bug] → [b2ga11y p=1][good first bug][lang=html]
I was wondering if this would be possible to test on the B2G simulator without a SIM.
Currently, I am unable to open the Usage app without a SIM card.
Flags: needinfo?(yzenevich)
(In reply to Mitchell Van Der Hoeff from comment #1)
> I was wondering if this would be possible to test on the B2G simulator
> without a SIM.
> Currently, I am unable to open the Usage app without a SIM card.

I believe that is the problem :(. However, it is possible to write a test for the changes and I could test it on device when reviewing. Would that work? If you are still interested, let me know, and I will assign the bug to you!
Flags: needinfo?(yzenevich)
Alright.

Is there any way I could write this test?
Or is that not necessary and is it easy enough just to change the level of these sub-headers and let someone with a device test it?
(In reply to Mitchell Van Der Hoeff from comment #3)
> Alright.
> 
> Is there any way I could write this test?
> Or is that not necessary and is it easy enough just to change the level of
> these sub-headers and let someone with a device test it?

Yes so you'd need to update all subheader tags like this https://github.com/mozilla-b2g/gaia/blob/master/apps/costcontrol/settings.html#L71 with ARIA attributes for headers and appropriate labels.

Actually here you would not need the tests since you are just changing the markup.
Assignee: nobody → mitchellvanderhoeff
Okay, thanks. 

One last question: where do I find the Usage app? I cannot find it in the `mozilla-b2g/gaia` repo.
(In reply to Mitchell Van Der Hoeff from comment #5)
> Okay, thanks. 
> 
> One last question: where do I find the Usage app? I cannot find it in the
> `mozilla-b2g/gaia` repo.

Right :) , it's costcotrol.
(In reply to Yura Zenevich [:yzen] from comment #6)
> (In reply to Mitchell Van Der Hoeff from comment #5)
> > Okay, thanks. 
> > 
> > One last question: where do I find the Usage app? I cannot find it in the
> > `mozilla-b2g/gaia` repo.
> 
> Right :) , it's costcotrol.

Oh I see, got it.
There were 4 gaia-subheader tags to which I added the attributes 'aria-level="2"' and 'role="heading"'.
Attachment #8499735 - Flags: review?(yzenevich)
Comment on attachment 8499735 [details] [diff] [review]
A patch to fix the level of the headers in the Usage app

a11y-r+ me, thanks Mitchell.

Could you please create a Github pull request with the changes in the patch so it could then be merged into Gaia master? Once you've done that, please, mark Salvador de la Puente González for the review since I am not a peer for the app.

Thanks again!
Attachment #8499735 - Flags: review?(yzenevich) → a11y-review+
Comment on attachment 8499735 [details] [diff] [review]
A patch to fix the level of the headers in the Usage app

Pull Request can be found at: https://github.com/mozilla-b2g/gaia/pull/24851
Attachment #8499735 - Flags: review?(salva)
Attachment #8499735 - Attachment is obsolete: true
Attachment #8499735 - Flags: review?(salva)
Attachment #8501728 - Flags: review?(salva)
Attachment #8501728 - Flags: a11y-review+
Comment on attachment 8501728 [details] [review]
Mitchell's pull request.

Sorry for the delay. i was working on blockers. Nice work. Thank you.
Attachment #8501728 - Flags: review?(salva) → review+
(In reply to Salvador de la Puente González [:salva] from comment #12)
> Comment on attachment 8501728 [details] [review]
> Mitchell's pull request.
> 
> Sorry for the delay. i was working on blockers. Nice work. Thank you.

Mitchell, could you rebase your pull request with latest master to re-trigger the tests. Thanks!
Flags: needinfo?(mitchellvanderhoeff)
(In reply to Yura Zenevich [:yzen] from comment #13)
> (In reply to Salvador de la Puente González [:salva] from comment #12)
> > Comment on attachment 8501728 [details] [review]
> > Mitchell's pull request.
> > 
> > Sorry for the delay. i was working on blockers. Nice work. Thank you.
> 
> Mitchell, could you rebase your pull request with latest master to
> re-trigger the tests. Thanks!
Rebased and pushed to personal fork. Should tests run automatically now?
Flags: needinfo?(mitchellvanderhoeff)
Great, thanks, lets wait till it finishes.

Yes you can see an auto-comment on your pull request from try-server-hook with a link to the test run.
Comment on attachment 8501728 [details] [review]
Mitchell's pull request.

The failures in the Gij test seem unrelated. r+
Attachment #8501728 - Flags: a11y-review+
https://github.com/mozilla-b2g/gaia/commit/baaff455fd2c42c6319df77e1b77ee49c9e45ca5
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
I've backed this out for having an improper commit message. There was no bug number present in the commit message which makes tracking down history much harder in the future. I've gone ahead and re-landed your original commit with the proper bug number and reviewer.

Backout: https://github.com/mozilla-b2g/gaia/commit/dca789329eb8ae5c24b4c387546478a965fe8821
Re-land: https://github.com/mozilla-b2g/gaia/commit/20a686b2126d3f5765c8bebfb6360dd47b724c4a

I'm very upset that this got 2+ reviews and no one noticed this.
(In reply to Kevin Grandon :kgrandon from comment #18)
> I've backed this out for having an improper commit message. There was no bug
> number present in the commit message which makes tracking down history much
> harder in the future. I've gone ahead and re-landed your original commit
> with the proper bug number and reviewer.
> 
> Backout:
> https://github.com/mozilla-b2g/gaia/commit/
> dca789329eb8ae5c24b4c387546478a965fe8821
> Re-land:
> https://github.com/mozilla-b2g/gaia/commit/
> 20a686b2126d3f5765c8bebfb6360dd47b724c4a
> 
> I'm very upset that this got 2+ reviews and no one noticed this.

Urgh, my bad. I should've got it. Mitchell could you please rebase the pull request with the following format: "Bug 1069599 - ... r=salva"

Thanks
Status: RESOLVED → REOPENED
Flags: needinfo?(mitchellvanderhoeff)
Resolution: FIXED → ---
No worries - it happens. I'm hoping to have a bot done soon that will alert us of this.

This has already been re-landed with the proper commit message in comment 18. Thanks!
Status: REOPENED → RESOLVED
Closed: 10 years ago10 years ago
Flags: needinfo?(mitchellvanderhoeff)
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: