Skip to content

Commit 653f8f3

Browse files
Docs: Make "Edit in Stackblitz" links explicit in 'Examples' page (#40766)
Co-authored-by: Julien Déramond <[email protected]>
1 parent d07536f commit 653f8f3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

site/layouts/partials/examples/main.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ <h2 id="{{ $entry.category | urlize }}">{{ $entry.category }}</h2>
1818
<svg class="bi fs-5 flex-shrink-0 mt-1" aria-hidden="true"><use xlink:href="#box-seam"></use></svg>
1919
<div>
2020
<h3 class="h5 mb-1">
21-
<a class="d-block link-offset-1" href="{{ urls.JoinPath $.Site.Params.github_org $example.url }}" target="_blank" rel="noopener">
21+
<a class="d-block link-offset-1" href="{{ urls.JoinPath $.Site.Params.github_org $example.url }}" target="_blank" rel="noopener" id="starter-{{ $i }}">
2222
{{ $example.name }}
2323
</a>
2424
</h3>
2525
<p class="text-body-secondary">{{ $example.description }}</p>
2626
<p>
2727
{{- $indexPath := default "index.html" $example.indexPath -}}
2828
{{- $stackBlitzUrl := printf "%s%s%s" (urls.JoinPath "https://stackblitz.com/github/twbs" $example.url) "?file=" ($indexPath | urlquery) }}
29-
<a class="icon-link small link-secondary link-offset-1" href="{{ $stackBlitzUrl }}" target="_blank" rel="noopener">
29+
<a class="icon-link small link-secondary link-offset-1" href="{{ $stackBlitzUrl }}" target="_blank" rel="noopener" aria-labelledby="edit-{{ $i }} starter-{{ $i }}">
3030
<svg class="bi flex-shrink-0" aria-hidden="true"><use xlink:href="#lightning-charge-fill"></use></svg>
31-
Edit in StackBlitz
31+
<span id="edit-{{ $i }}">Edit in StackBlitz</span>
3232
</a>
3333
</p>
3434
</div>

0 commit comments

Comments
 (0)