Skip to content

fix(app-nav-bar): use grid maxWidth#4997

Merged
chasestarr merged 7 commits intomasterfrom
app-nav-bar-grid-width
Jun 23, 2022
Merged

fix(app-nav-bar): use grid maxWidth#4997
chasestarr merged 7 commits intomasterfrom
app-nav-bar-grid-width

Conversation

@chasestarr
Copy link
Collaborator

Description

I mistakenly used the large breakpoint value as the app-nav-bar content maxWidth. It was previously set to grid maxWidth and this PR restores that

Scope

Patch: Bug Fix

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 22, 2022

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit bd546fd:

Sandbox Source
Basic usage Configuration

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Jun 22, 2022

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: bd546fd
Status: ✅  Deploy successful!
Preview URL: https://d5ceba9c.baseweb.pages.dev
Branch Preview URL: https://app-nav-bar-grid-width.baseweb.pages.dev

View logs

@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #4998

@chrisrauh
Copy link
Collaborator

It looks like there is still an issue. The previous implementation (using ) also accounted for responsive margins. This update is placing the nav bar flush against the window sides when the window width is smaller than max-width.

It is hard to notice because the maxWidth is too close to the large breakpoint. If one increases the max-width it is more apparent:

image

However, margins should still be maintained even for smaller breakpoints.

@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #4998

UberOpenSourceBot and others added 3 commits June 23, 2022 09:26
@UberOpenSourceBot
Copy link
Contributor

Visual changes were detected on this branch. Please review the following PR containing updated snapshots: #5003

UberOpenSourceBot and others added 2 commits June 23, 2022 11:33
Co-authored-by: UberOpenSourceBot <UberOpenSourceBot@users.noreply.github.com>
@chasestarr chasestarr merged commit 9cf52a4 into master Jun 23, 2022
@chasestarr chasestarr deleted the app-nav-bar-grid-width branch June 23, 2022 20:33
@jacquesg
Copy link
Contributor

Still some issues here.

image

@jacquesg
Copy link
Contributor

The styling of the Primary and Secondary menu containers are not symmetric. Its not possible currently to change for example the background and font colors of the Primary (say to blue and white) and have the the Secondary say white and black.

https://vimeo.com/723714087/5e29aa0b93

@jacquesg
Copy link
Contributor

The tweaks made to this component has significantly broken our code to the extent that we had to replace the components completely. It isn't possible to just change the styling.

@jacquesg
Copy link
Contributor

Breakages observed since 11.0.0:

image

Previously:

image

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants