Closed Bug 1069367 Opened 10 years ago Closed 10 years ago

"Header" should be below in card in markup

Categories

(Firefox OS Graveyard :: Gaia::System::Window Mgmt, defect)

All
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: eeejay, Assigned: obara.justin, Mentored)

References

Details

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

Attachments

(1 file)

The header appears below the card in cards view, but in the markup it is above.

This is confusing for the screen reader user since the swipe order contradicts the spatial order.
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][lang=css]
I would like to be assigned this bug if possible, where do I start?
(In reply to Pete Chambers from comment #1)
> I would like to be assigned this bug if possible, where do I start?

Yes, please :). For your first steps you should check out:
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/card.js
and see how the markup is structured there. What we want is the markup to be consistent with presentation (where the header is ahead of screenshot/icon view).

Thanks!
Assignee: nobody → petechambers1992
First of all thanks for assigning me to the bug, I just had a look at how it is structured and got a good idea of what is included however I'm a little confused as to where the header is located in the file?
Not to worry I think I've located it, I think it may have been because I was viewing it on my mobile device at first! :)
Assignee: petechambers1992 → nobody
I'm really sorry Yura but I didn't feel like I could help with this bug and have looked into another bug. Sorry again
Assignee: nobody → obara.justin
Yura, is this still an issue? The screenshotView class is at the top of the markup. https://github.com/mozilla-b2g/gaia/blob/master/apps/system/js/card.js#L73-L93

Unfortunately, I can't seem to get the simulator to run and don't have a device to test this out to be sure.
Comment on attachment 8507331 [details] [review]
Moved the markup for the header to come before the screenshot. While this had been done with styling, it is more semantic it this way in the markup as well.

This looks good from a11y point of view. The order of the header and the screen shot is now correct.

Justin, could you please rebase your PR to re-trigger the tests, there were some failing tests (though unrelated).

Thanks!
Flags: needinfo?(obara.justin)
Attachment #8507331 - Flags: review?(yzenevich)
Attachment #8507331 - Flags: review?(alive)
Attachment #8507331 - Flags: a11y-review+
Yura, I've rebased the PR and pushed up.
Flags: needinfo?(obara.justin)
Comment on attachment 8507331 [details] [review]
Moved the markup for the header to come before the screenshot. While this had been done with styling, it is more semantic it this way in the markup as well.

LGTM
Attachment #8507331 - Flags: review?(alive) → review+
https://github.com/mozilla-b2g/gaia/commit/e09e1734ad523cf63351a28f6f84454319349fbe

Thanks for the PR!
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

Creator:
Created:
Updated:
Size: