Repository navigation
Description
Feature Description
On the Feature Discovery Hub, the tab bar (#13248) and the category filter chips on the "All services and features" tab (#13329) should stay in view as the user scrolls down the page. Each sticks in place as it reaches the top of the screen: the tab bar directly below the Site Kit header, and the chips directly below the tab bar. The user can then switch tab or change the filter without scrolling back up, which matters most on "All services and features", where the list of features is long. On mobile, the chips are not sticky, because they would take up too much of the screen's height.
This matches the dashboard, where the navigation chips already stick below the Site Kit header in the same way.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
- When the user scrolls down the hub on either tab, the tab bar stops directly below the Site Kit header and stays there while the content scrolls beneath it.
- When the user scrolls down the "All services and features" tab, at tablet and desktop widths, the category filter chips stop directly below the tab bar and stay there while the feature list scrolls beneath them.
- The tab bar is sticky in all viewports.
- The chips are only sticky in tablet and desktop viewports.
- Content scrolling beneath the tab bar and the chips can't be seen through them.
- The feature detail panel and the in-place setup panels and dialogs appear over the tab bar and the chips.
Implementation Brief
This PoC PR may be useful as a reference for the IB.
- In
assets/sass/components/feature-discovery/_googlesitekit-feature-discovery.scss, add two CSS custom properties on.googlesitekit-feature-discovery:- the distance from the top of the screen to the bottom of the Site Kit header. Use the same values as the
topof.googlesitekit-navigation:68pxby default, and insidebody.admin-bar &the same three media queries with114px,100pxand116px. - the height of the tab bar:
57px(the56pxtab height set by.googlesitekit-tab-bar--start-aligned-high-contrast, plus its1pxbottom border).
- the distance from the top of the screen to the bottom of the Site Kit header. Use the same values as the
- In the same file, make
.googlesitekit-feature-discovery__tab-barsticky in all viewports:position: sticky, withtopset to the header offset property above.background-color: $c-base, so the content that scrolls beneath it is hidden.z-index: 10, the same as.googlesitekit-navigation. This is above the hub content and below the Site Kit header ($z-index-sk-header), the side sheets used byFeatureDetailPaneland the selection panels ($z-index-sk-side-sheet), and.mdc-dialog(10000), so all of those still appear over the tab bar.- Set
position: staticwhenbody.googlesitekit-showing-feature-tourorbody.googlesitekit-showing-tooltipis present, as.googlesitekit-navigationdoes.
- In
assets/sass/components/feature-discovery/_googlesitekit-category-filter-chips.scss, make.googlesitekit-category-filter-chipssticky from$bp-tabletupwards only (@media (min-width: $bp-tablet)). Below that width, keep the current styles unchanged:position: sticky, withtopset to the header offset plus the tab bar height (calc()of the two custom properties).background-color: $c-baseandz-index: 10, as for the tab bar.- Add vertical padding so the chips have some space above and below them while they are stuck, and reduce the vertical margins by the same amount, so the chips stay in exactly the same place when the page is not scrolled.
position: staticrule for the feature tour and tooltip body classes as the tab bar.
Test Coverage
- Not applicable.
Activity
techanvil commentedon Nov 11, 2026
IB ✅