Skip to content

Commit cdffbf2

Browse files
committed
fix: add title attribute to table-of-contents links
Synced with origin change that adds tooltip support for truncated TOC items
1 parent 23808f5 commit cdffbf2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adev-ja/shared-docs/components/table-of-contents/table-of-contents.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ <h2 class="docs-title">目次</h2>
99
<li class="docs-faceted-list-item" [class.docs-toc-item-h2]="item.level === TableOfContentsLevel.H2"
1010
[class.docs-toc-item-h3]="item.level === TableOfContentsLevel.H3">
1111
<!-- Not using routerLink + fragment because of: https://github.com/angular/angular/issues/30139 -->
12-
<a [href]="location.path() + '#' + item.id" [class.docs-faceted-list-item-active]="item.id === activeItemId()">
12+
<a [href]="location.path() + '#' + item.id" [class.docs-faceted-list-item-active]="item.id === activeItemId()" [title]="item.title">
1313
{{ item.title }}
1414
</a>
1515
</li>

0 commit comments

Comments
 (0)