Repository navigation
docs: improve accessibility of router example - #40914
kapunahelewong wants to merge 2 commits into
Conversation
|
|
|
You can preview 2d86e38 at https://pr40914-2d86e38.ngbuilds.io/. |
aikithoughts
left a comment
There was a problem hiding this comment.
Reviewed-for: global-docs-approvers
|
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/. |
There was a problem hiding this comment.
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.
|
You can preview f4b2ac5 at https://pr40914-f4b2ac5.ngbuilds.io/. |
|
You can preview a99f242 at https://pr40914-a99f242.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
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
appoccurrences at the bottom ofrouter-tutorial-toh.md: - Regarding the new images:
- OOC, why use GIFs instead of PNGs?
- Many of them include the
Angular Routerheader 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)
|
You can preview 38230d8 at https://pr40914-38230d8.ngbuilds.io/. |
Done. ✅
I was going with whichever file was smaller when exporting it from Affinity Photo.
Cropped.
Done. ✅
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?
Good catch! Fixed. ✅
Both done! ✅ |
|
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/. |
gkalpak
left a comment
There was a problem hiding this comment.
Is it intentional that the Crisis Center and the Heroes list item styles are different (different background colors when selected, different hover style, etc.)?
|
You can preview 902ad36 at https://pr40914-902ad36.ngbuilds.io/. |
gkalpak
left a comment
There was a problem hiding this comment.
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)
|
@gkalpak Do you think you could make the last remaining changes to this PR so we can get merge it? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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
After