Skip to content

"Community" in the site top bar does not highlight when current page #1894

@pradyunsg

Description

@pradyunsg

Describe the bug

Title says it all?

To Reproduce

Steps to reproduce the behavior:

  1. Go to https://www.python.org/
  2. Click on "Community" in the top bar.
  3. Move mouse outside of the top bar.
  4. Notice that "Python" is the currently-highlighted item in the top bar.

Expected behavior

This behaviour can be contrasted against how the PSF item in the top bar behaves. It is highlighted, when on a page within it's subtree.

Screenshots

(incorrect)
Screenshot 2021-10-17 at 02 01 56

(correct)
Screenshot 2021-10-17 at 02 01 49

Desktop

  • OS: MacOS
  • Browser: Firefox
  • Version: 93.0

Additional context

It seems like we're missing two things:

  • The CSS selector for .community in
    .python & .python-meta a,
    .psf & .psf-meta a,
    .docs & .docs-meta a,
    .pypi & .pypi-meta a,
    .jobs & .jobs-meta a,
    .shop & .shop-meta a { @extend %topbar-hovered-state; }
    }
    .meta-navigation {
    text-align: center;
    .
  • Whatever the site CMS information is to get the jobs class on body, in the staging environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions