Skip to content

Bug - Page - navbar regressions due to Toolbar/PageHeaderTools responsiveness #7960

@ianw

Description

@ianw

I have recently done an update of our @patternfly/react-core from 4.198.5 -> 4.235.7

This has changed the behaviour of our top PageHeader topNav navbar in a way I can't quite figure out how to work around. Firstly a video of the existing site

Screencast.from.12-09-22.10.18.16.webm

You can see

  • The PageHeader has a topNav which remains on a "second" line underneath the existing header at all times. As it gets smaller, it shrinks to have scroll arrows
  • The logo just keeps getting smaller as this happens

Below is a sample from the site when updated to 4.235.7

Screencast.from.12-09-22.10.31.45.webm

The problems here

  • The logo is missing? As the page shrinks, about the time we get the three-dot kebab for "Components API" etc. it suddenly reappears.
  • We don't want the nav bar in the title bar at any point. Eventually it jumps down as the window size shrinks, but we'd like it there always.

From what I can tell, this relates to #6827? I say this because on the "new" site the page div has

<div class="pf-c-page pf-m-resize-observer pf-m-breakpoint-xl pf-m-height-breakpoint-2xl">

whereas it does not have the resize observers on the old site, and I think this change added them.

I guess my main question is how I can keep the topNav separate on all page widths? This may be my misunderstanding of how to use the getBreakpoint function. The secondary question is about why the <PageHeader> logo is disappearing.

The code that is doing this is all around https://opendev.org/zuul/zuul/src/branch/master/web/src/App.jsx#L444

A live sample of this site is available from our CI

https://storage.gra.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_bdb/855577/1/check/zuul-build-dashboard-opendev/bdb7872/npm/html/tenants

Click on "builds" for any tenant and it will move to this view with the top nav bar

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions