Skip to content

Keep the hub's tabs and category filter chips in view while scrolling #13967

Open

Description

@techanvil

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 top of .googlesitekit-navigation: 68px by default, and inside body.admin-bar & the same three media queries with 114px, 100px and 116px.
    • the height of the tab bar: 57px (the 56px tab height set by .googlesitekit-tab-bar--start-aligned-high-contrast, plus its 1px bottom border).
  • In the same file, make .googlesitekit-feature-discovery__tab-bar sticky in all viewports:
    • position: sticky, with top set 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 by FeatureDetailPanel and the selection panels ($z-index-sk-side-sheet), and .mdc-dialog (10000), so all of those still appear over the tab bar.
    • Set position: static when body.googlesitekit-showing-feature-tour or body.googlesitekit-showing-tooltip is present, as .googlesitekit-navigation does.
  • In assets/sass/components/feature-discovery/_googlesitekit-category-filter-chips.scss, make .googlesitekit-category-filter-chips sticky from $bp-tablet upwards only (@media (min-width: $bp-tablet)). Below that width, keep the current styles unchanged:
    • position: sticky, with top set to the header offset plus the tab bar height (calc() of the two custom properties).
    • background-color: $c-base and z-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: static rule for the feature tour and tooltip body classes as the tab bar.

Test Coverage

  • Not applicable.

QA Brief

Changelog entry

Activity

  1. self-assigned this
    on Oct 26, 2026
  2. added
    P1
    Type: Enhancement
    Team M
    on Oct 26, 2026
  3. removed their assignment
    on Oct 26, 2026
  4. techanvil commented on Nov 11, 2026

    @techanvil
    CollaboratorAuthor

    IB ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Team MType: Enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions