forked from angular/components
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: anchor links not scrolling into view (angular#519)
* Currently if someone visits a link that contains a fragment that refers to an anchor element, the element won't be scrolled into view properly. This is because the `focusOnNavigation` calls `focus()` after the scroll into view. This causes the focused element to be visible in view. * Removes an unnecessary workaround for fixing fragment URLs. Fixes angular#396
- Loading branch information
1 parent
e9e73f0
commit 3b161b0
Showing
8 changed files
with
41 additions
and
55 deletions.
There are no files selected for viewing
11 changes: 7 additions & 4 deletions
11
material.angular.io/material.angular.io/src/app/pages/component-viewer/component-api.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ial.angular.io/material.angular.io/src/app/pages/component-viewer/component-examples.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ial.angular.io/material.angular.io/src/app/pages/component-viewer/component-overview.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<span class="cdk-visually-hidden" tabindex="-1" #intialFocusTarget> | ||
<span class="cdk-visually-hidden" tabindex="-1" #initialFocusTarget> | ||
Overview for {{componentViewer.componentDocItem.id}} | ||
</span> | ||
<doc-viewer | ||
documentUrl="/assets/documents/overview/{{componentViewer.componentDocItem.packageName}}-{{componentViewer.componentDocItem.id}}.html" | ||
class="docs-component-view-text-content docs-component-overview" | ||
(contentLoaded)="onContentLoaded()"> | ||
(contentRendered)="scrollToSelectedContentSection()"> | ||
</doc-viewer> | ||
<table-of-contents #toc container=".mat-drawer-content" *ngIf="showToc | async"></table-of-contents> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters