Fix TOC bottom fade

Additional change: Fixes an eslint warning

Bug: T306893
Change-Id: I778470ec5fa2081e4412f40b0180efbff7013d1b
This commit is contained in:
bwang 2022-04-27 13:18:16 -05:00 committed by Jdlrobson
parent b06aba7619
commit af8cf470fd
2 changed files with 4 additions and 3 deletions

View File

@ -87,9 +87,9 @@ module.exports = function tableOfContents( props ) {
const topSection = /** @type {HTMLElement} */ ( selectedTocSection.closest( `.${PARENT_SECTION_CLASS}` ) );
// The bolding of sections is arguably not "motion", however does provide a distraction to readers
// who are scrolling by visibly changing the table of contents. This can be removed if someone has
// a strong argument for why this should not be considered motion.
// The bolding of sections is arguably not "motion", however does provide a distraction to
// readers who are scrolling by visibly changing the table of contents. This can be removed
// if someone has a strong argument for why this should not be considered motion.
if ( prefersReducedMotion() ) {
return;
} else if ( selectedTocSection === topSection ) {

View File

@ -36,6 +36,7 @@
}
.sidebar-toc {
position: relative;
margin-top: @top-margin-sidebar-toc_title_inline;
margin-left: @margin-start-sidebar-content;
}