From 50cf2ac6d844d4680cdaad00e15071c532744745 Mon Sep 17 00:00:00 2001 From: WilliamKoza Date: Fri, 11 Jan 2019 19:44:08 +0100 Subject: [PATCH] fix(docs-infra): improve a11y (#28086) Issue #27723 PR Close #28086 --- aio/content/marketing/features.html | 8 ++++---- aio/content/marketing/index.html | 4 ++-- aio/content/marketing/presskit.html | 6 +++--- aio/src/404-body.html | 2 +- aio/src/app/app.component.html | 4 ++-- aio/src/app/app.component.spec.ts | 4 ++-- .../announcement-bar/announcement-bar.component.ts | 2 +- aio/src/index.html | 2 +- aio/src/styles/1-layouts/_marketing-layout.scss | 4 ++-- aio/src/styles/2-modules/_notification.scss | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/aio/content/marketing/features.html b/aio/content/marketing/features.html index e62dfd8e09..a4f5fcd6e9 100755 --- a/aio/content/marketing/features.html +++ b/aio/content/marketing/features.html @@ -8,7 +8,7 @@
Cross Platform
- +
@@ -34,7 +34,7 @@
Speed and Performance
- +
@@ -59,7 +59,7 @@
Productivity
- +
@@ -84,7 +84,7 @@
Full Development Story
- +
diff --git a/aio/content/marketing/index.html b/aio/content/marketing/index.html index 7de22cc0f2..8bcdf397aa 100755 --- a/aio/content/marketing/index.html +++ b/aio/content/marketing/index.html @@ -9,7 +9,7 @@ @@ -104,7 +104,7 @@
- + Angular quickstart
Get Started

Start building your Angular application.

diff --git a/aio/content/marketing/presskit.html b/aio/content/marketing/presskit.html index 0bfb1b977c..4ae5b7cca4 100644 --- a/aio/content/marketing/presskit.html +++ b/aio/content/marketing/presskit.html @@ -20,7 +20,7 @@
- Angular + Full color logo Angular

FULL COLOR LOGO

@@ -40,7 +40,7 @@
- + Black logo Angular
@@ -61,7 +61,7 @@
- + Transparent logo Angular
diff --git a/aio/src/404-body.html b/aio/src/404-body.html index 8b9185c228..1754328246 100644 --- a/aio/src/404-body.html +++ b/aio/src/404-body.html @@ -23,7 +23,7 @@ -
+
diff --git a/aio/src/app/app.component.html b/aio/src/app/app.component.html index fde39a7a93..5775bd9a1f 100644 --- a/aio/src/app/app.component.html +++ b/aio/src/app/app.component.html @@ -52,7 +52,7 @@
-
+
-
+ diff --git a/aio/src/app/app.component.spec.ts b/aio/src/app/app.component.spec.ts index 328501569e..f57db5b5aa 100644 --- a/aio/src/app/app.component.spec.ts +++ b/aio/src/app/app.component.spec.ts @@ -1071,7 +1071,7 @@ describe('AppComponent', () => { it('should set the id of the doc viewer container based on the current doc', () => { initializeTest(false); - const container = fixture.debugElement.query(By.css('section.sidenav-content')); + const container = fixture.debugElement.query(By.css('main.sidenav-content')); navigateTo('guide/pipes'); expect(component.pageId).toEqual('guide-pipes'); @@ -1088,7 +1088,7 @@ describe('AppComponent', () => { it('should not be affected by changes to the query', () => { initializeTest(false); - const container = fixture.debugElement.query(By.css('section.sidenav-content')); + const container = fixture.debugElement.query(By.css('main.sidenav-content')); navigateTo('guide/pipes'); navigateTo('guide/other?search=http'); diff --git a/aio/src/app/custom-elements/announcement-bar/announcement-bar.component.ts b/aio/src/app/custom-elements/announcement-bar/announcement-bar.component.ts index 6698ec19bb..5ffa318e30 100644 --- a/aio/src/app/custom-elements/announcement-bar/announcement-bar.component.ts +++ b/aio/src/app/custom-elements/announcement-bar/announcement-bar.component.ts @@ -46,7 +46,7 @@ export interface Announcement { template: `
diff --git a/aio/src/index.html b/aio/src/index.html index 43c59b416f..5d9ccd10fa 100644 --- a/aio/src/index.html +++ b/aio/src/index.html @@ -93,7 +93,7 @@
One framework.
Mobile & desktop.
diff --git a/aio/src/styles/1-layouts/_marketing-layout.scss b/aio/src/styles/1-layouts/_marketing-layout.scss index f90c0ec4ec..2d15939a79 100644 --- a/aio/src/styles/1-layouts/_marketing-layout.scss +++ b/aio/src/styles/1-layouts/_marketing-layout.scss @@ -268,13 +268,13 @@ section#intro { aio-shell { &.page-resources, &.page-events, &.page-features, &.page-presskit, &.page-contribute { - section { + main { padding: 0rem 0rem 3rem; } } &.page-home { - section { + main { padding: 0; } } diff --git a/aio/src/styles/2-modules/_notification.scss b/aio/src/styles/2-modules/_notification.scss index 78a6cde583..35121b27d9 100644 --- a/aio/src/styles/2-modules/_notification.scss +++ b/aio/src/styles/2-modules/_notification.scss @@ -89,7 +89,7 @@ aio-notification { } &.page-home, &.page-resources, &.page-events, &.page-features, &.page-presskit, &.page-contribute { - section { + main { padding-top: $notificationHeight; } }