Fix TOC bottom fade
Additional change: Fixes an eslint warning Bug: T306893 Change-Id: I778470ec5fa2081e4412f40b0180efbff7013d1b
This commit is contained in:
parent
b06aba7619
commit
af8cf470fd
|
@ -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 ) {
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
}
|
||||
|
||||
.sidebar-toc {
|
||||
position: relative;
|
||||
margin-top: @top-margin-sidebar-toc_title_inline;
|
||||
margin-left: @margin-start-sidebar-content;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue