Skip to content

docs: improve accessibility of router example - #40914

Closed
kapunahelewong wants to merge 2 commits into
angular:masterfrom
kapunahelewong:a11y-router
Closed

kapunahelewong wants to merge 2 commits into
angular:masterfrom
kapunahelewong:a11y-router

Conversation

@kapunahelewong

@kapunahelewong kapunahelewong commented Feb 18, 2021 •

Copy link
Copy Markdown
Contributor

Fixes contrast issues.
Makes labels explicitly reference inputs.
Adds padding to buttons so they are an easier target for touch or pointer.
Changes "Message: " label to "Enter your message: ".
Changes markup to make it more semantic.
Updates CSS.
Change all uppercase headers to lowercase (wasn't using a pipe, but written in all caps as a style).
Changes app to application.
Fixes li descriptions so they don't break at smallest width
Fixes e2e tests to reflect changes.
Updates imgs.

Before

Screen Shot 2021-02-22 at 4 27 31 PM

After

Screen Shot 2021-02-22 at 3 56 56 PM

Screen Shot 2021-02-22 at 3 58 41 PM

Screen Shot 2021-02-22 at 3 56 41 PM

Screen Shot 2021-02-22 at 4 19 30 PM

@google-cla google-cla Bot added the cla: yes label Feb 18, 2021
@ngbot ngbot Bot modified the milestone: Backlog Feb 18, 2021
@google-cla google-cla Bot added the cla: yes label Feb 18, 2021
@ngbot ngbot Bot added this to the Backlog milestone Feb 18, 2021
@google-cla

google-cla Bot commented Feb 18, 2021

Copy link
Copy Markdown

☹️ Sorry, but only Googlers may change the label cla: yes.

@mary-poppins

Copy link
Copy Markdown

@aikithoughts aikithoughts left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed-for: global-docs-approvers

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong marked this pull request as ready for review February 22, 2021 21:34

@gkalpak gkalpak left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! (And the screenshots make revieweing so much easier 😍)

My general comment is that I would prefer if we could re-use more styles across examples (so we don't have to maintain a ton of styles and also keep a consistent look-and-feel across examples).

BTW, I don't know if it is intentional but there are a bunch of screenshot images in the router tutorial that depict the old styles (and might confuse users). I understand updating all of them can be a lot of work and might not be worth the time. I just wanted to bring it up to make sure it has been considered.

@kapunahelewong
kapunahelewong marked this pull request as draft February 26, 2021 18:32
@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong marked this pull request as ready for review March 2, 2021 16:12
@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong requested a review from gkalpak March 2, 2021 17:49

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx, @kapunahele! The new styles look much better 🚀

Some comments:

  • Can you please rebase this on latest master and remove any component styles that are also defined in the boilerplate CSS? 🙏
  • There are a couple more app occurrences at the bottom of router-tutorial-toh.md:
  • Regarding the new images:
    • OOC, why use GIFs instead of PNGs?
    • Many of them include the Angular Router header which doesn't add anything afaict and unnecessarily increases the file size.
    • hero-list.gif has hover styles on Crisis Center, which is a little confusing.
    • router-1-anim.gif increased in size ~120x (9.74 KB --> 1.13 MB) 😱 Could we keep it close to the original size?
  • Something I noticed while playing with the example is that the "Crisis Center" list item hover styles are slightly different that those of "Heroes" (for example, there is no change in the horizontal position). Assume that was not intentional...

For personal reference, unresolved comments from previous review: #40914 (comment), #40914 (comment)

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong

Copy link
Copy Markdown
Contributor Author
  • Can you please rebase this on latest master and remove any component styles that are also defined in the boilerplate CSS? 🙏

Done. ✅

  • There are a couple more app occurrences at the bottom of router-tutorial-toh.md:
    Done. ✅
  • OOC, why use GIFs instead of PNGs?

I was going with whichever file was smaller when exporting it from Affinity Photo.

  • Many of them include the Angular Router header which doesn't add anything afaict and unnecessarily increases the file size.

Cropped.

  • hero-list.gif has hover styles on Crisis Center, which is a little confusing.

Done. ✅

  • router-1-anim.gif increased in size ~120x (9.74 KB --> 1.13 MB) 😱 Could we keep it close to the original size?

Oops! I recreated it with a smaller area (leaving out the title), trimmed it down to be a shorter loop, and then optimized it at https://www.iloveimg.com, but it's still 76k. Is there something else I can do to make it smaller, @gkalpak?

  • Something I noticed while playing with the example is that the "Crisis Center" list item hover styles are slightly different that those of "Heroes" (for example, there is no change in the horizontal position). Assume that was not intentional...

Good catch! Fixed. ✅

For personal reference, unresolved comments from previous review: #40914 (comment), #40914 (comment)

Both done! ✅

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong requested a review from gkalpak March 31, 2021 16:36

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it intentional that the Crisis Center and the Heroes list item styles are different (different background colors when selected, different hover style, etc.)?

@mary-poppins

Copy link
Copy Markdown

@kapunahelewong
kapunahelewong requested a review from gkalpak April 1, 2021 14:09

@gkalpak gkalpak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Almost there 😃

My last question:
Is it intentional that the Crisis Center and the Heroes list item styles are different (different background colors when selected, different hover style, etc.)?

[Note-to-self] Unresolved comments from previous review: #40914 (comment)

@jelbourn jelbourn left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good except for @gkalpak's outstanding comment

@petebacondarwin petebacondarwin added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Apr 26, 2021
@aikithoughts

Copy link
Copy Markdown

@gkalpak Do you think you could make the last remaining changes to this PR so we can get merge it?

@google-cla

This comment has been minimized.

@google-cla google-cla Bot added cla: no and removed cla: yes labels Jun 10, 2021
@gkalpak

This comment has been minimized.

@mary-poppins

Copy link
Copy Markdown

You can preview 2d86e38 at https://pr40914-2d86e38.ngbuilds.io/.
You can preview 66af008 at https://pr40914-66af008.ngbuilds.io/.
You can preview ed684c7 at https://pr40914-ed684c7.ngbuilds.io/.
You can preview ce8adcd at https://pr40914-ce8adcd.ngbuilds.io/.
You can preview f4b2ac5 at https://pr40914-f4b2ac5.ngbuilds.io/.
You can preview a99f242 at https://pr40914-a99f242.ngbuilds.io/.
You can preview 38230d8 at https://pr40914-38230d8.ngbuilds.io/.
You can preview 8e3763a at https://pr40914-8e3763a.ngbuilds.io/.
You can preview d84d52c at https://pr40914-d84d52c.ngbuilds.io/.
You can preview 290d148 at https://pr40914-290d148.ngbuilds.io/.
You can preview 6164c36 at https://pr40914-6164c36.ngbuilds.io/.
You can preview 5dbd7a9 at https://pr40914-5dbd7a9.ngbuilds.io/.
You can preview bfb935f at https://pr40914-bfb935f.ngbuilds.io/.
You can preview 902ad36 at https://pr40914-902ad36.ngbuilds.io/.
You can preview 0a1bb38 at https://pr40914-0a1bb38.ngbuilds.io/.

@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Jun 10, 2021
@alxhub alxhub closed this in e299683 Jun 10, 2021
alxhub pushed a commit that referenced this pull request Jun 10, 2021
@angular-automatic-lock-bot

Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Jul 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes effort2: days risk: low target: patch This PR is targeted for the next patch release type: bug/fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants