Skip to content

Commit

Permalink
DOCS-639: Fix heading for tab index
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Sep 16, 2023
1 parent d89cc59 commit bb77d4c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions assets/scss/_styles_project.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1344,3 +1344,9 @@ a.ais-Pagination-link:hover {
.row.flex-xl-nowrap {
min-height: 100%;
}

// Helper to allow search to link to tabs

.search-helper {
display: none;
}
2 changes: 1 addition & 1 deletion docsearch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lvl2": ".td-content h2",
"lvl3": ".td-content h3",
"lvl4": ".td-content h4",
"lvl5": ".td-content h5, .td-content .tab-content .tab-pane",
"lvl5": ".td-content h5, .td-content .tab-content .tab-pane .search-helper",
"text": ".td-content p, .td-content div, .td-content ul li, .td-content ol li, .td-content table tbody tr"
},
"selectors_exclude": [".footer", "#edit-on-github"]
Expand Down
1 change: 1 addition & 0 deletions layouts/shortcodes/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<div id="{{ $id }}" class="tab-pane show active" role="tabpanel" aria-labelledby="{{ $id }}">
{{ else }}
<div id="{{ $id }}" class="tab-pane" role="tabpanel" aria-labelledby="{{ $id }}">
<span id="{{ $id }}" class="search-helper"> {{- trim .name " " -}} </span>
{{ end }}
{{- with .content -}}
{{- . -}}
Expand Down

0 comments on commit bb77d4c

Please sign in to comment.