Skip to content

Commit b391acc

Browse files
authored
fix(styling): last link in jump links sidenav is now visible (#4638)
1 parent c5f7d5a commit b391acc

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

packages/documentation-framework/components/tableOfContents/tableOfContents.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939

4040
.ws-toc .pf-v6-c-jump-links__main {
4141
scrollbar-width: none;
42+
margin-bottom: var(--jump-links-main-margin-bottom);
4243
}
4344

4445
/* Hide TOC scrollbar Chrome, Safari & Opera */

packages/documentation-framework/components/tableOfContents/tableOfContents.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ export const TableOfContents = ({ items }) => {
9393
isVertical
9494
scrollableSelector="#ws-page-main"
9595
className="ws-toc"
96-
style={{ top: stickyNavHeight }}
96+
style={{ top: stickyNavHeight,
97+
'--jump-links-main-margin-bottom': `${stickyNavHeight}px`
98+
}}
9799
offset={width > 1450 ? 108 + stickyNavHeight : 148 + stickyNavHeight}
98100
expandable={{ default: 'expandable', '2xl': 'nonExpandable' }}
99101
>

0 commit comments

Comments
 (0)