From 4d1299bd821b5f1dc729627b032882a096a3d76f Mon Sep 17 00:00:00 2001 From: Kapunahele Wong Date: Fri, 29 Jan 2021 15:24:30 -0500 Subject: [PATCH] docs: improve accessibility of toh-pt5 example (#40632) PR Close #40632 --- .../examples/toh-pt5/e2e/src/app.e2e-spec.ts | 2 +- .../toh-pt5/src/app/app.component.css | 16 ++-- .../toh-pt5/src/app/app.component.html | 2 +- .../app/dashboard/dashboard.component.1.html | 10 +- .../src/app/dashboard/dashboard.component.css | 93 ++++++++----------- .../app/dashboard/dashboard.component.html | 14 ++- .../app/hero-detail/hero-detail.component.css | 14 +-- .../hero-detail/hero-detail.component.html | 5 +- .../src/app/heroes/heroes.component.css | 23 +++-- .../src/app/messages/messages.component.css | 15 ++- .../src/app/messages/messages.component.html | 2 +- aio/content/navigation.json | 2 +- aio/content/tutorial/toh-pt5.md | 26 +++--- 13 files changed, 101 insertions(+), 123 deletions(-) diff --git a/aio/content/examples/toh-pt5/e2e/src/app.e2e-spec.ts b/aio/content/examples/toh-pt5/e2e/src/app.e2e-spec.ts index 205d500afe..62320d7845 100644 --- a/aio/content/examples/toh-pt5/e2e/src/app.e2e-spec.ts +++ b/aio/content/examples/toh-pt5/e2e/src/app.e2e-spec.ts @@ -46,7 +46,7 @@ describe('Tutorial part 5', () => { appDashboardHref: navElts.get(0), appDashboard: element(by.css('app-root app-dashboard')), - topHeroes: element.all(by.css('app-root app-dashboard > div h4')), + topHeroes: element.all(by.css('app-root app-dashboard > div a')), appHeroesHref: navElts.get(1), appHeroes: element(by.css('app-root app-heroes')), diff --git a/aio/content/examples/toh-pt5/src/app/app.component.css b/aio/content/examples/toh-pt5/src/app/app.component.css index 431ec44879..cacd591d41 100644 --- a/aio/content/examples/toh-pt5/src/app/app.component.css +++ b/aio/content/examples/toh-pt5/src/app/app.component.css @@ -1,23 +1,21 @@ /* AppComponent's private CSS styles */ h1 { - font-size: 1.2em; margin-bottom: 0; } nav a { - padding: 5px 10px; + padding: 1rem; text-decoration: none; margin-top: 10px; display: inline-block; - background-color: #eee; + background-color: #e8e8e8; + color: #3d3d3d; border-radius: 4px; } -nav a:visited, a:link { - color: #334953; -} + nav a:hover { - color: #039be5; - background-color: #cfd8dc; + color: white; + background-color: #42545C; } nav a.active { - color: #039be5; + background-color: black; } diff --git a/aio/content/examples/toh-pt5/src/app/app.component.html b/aio/content/examples/toh-pt5/src/app/app.component.html index 12e347256e..eacd9b765c 100644 --- a/aio/content/examples/toh-pt5/src/app/app.component.html +++ b/aio/content/examples/toh-pt5/src/app/app.component.html @@ -1,6 +1,6 @@ -

{{title}}

+

{{title}}