Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Sidebar): Sidebar now overlays page content #3837

Merged
merged 1 commit into from
Jul 23, 2024

Conversation

will-lamb
Copy link
Contributor

Related issue

#3826

Overview

I have changed the display property of the sidebar to absolute when it is open so that it overlays the page content rather than pushing it to one side.

Reason

Currently, there is a layout shift happening when the sidebar is opened as it pushes the content to the right.

Work carried ou

Example.

  • changed the display property of the sidebar to absolute when it is open

Screenshot

Before:
image

After:
image

Copy link

netlify bot commented Jul 4, 2024

Deploy Preview for storybook-navy-digital-mod-uk ready!

Name Link
🔨 Latest commit ea8515f
🔍 Latest deploy log https://app.netlify.com/sites/storybook-navy-digital-mod-uk/deploys/669f8693b403f20008ecd737
😎 Deploy Preview https://deploy-preview-3837--storybook-navy-digital-mod-uk.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@will-lamb will-lamb self-assigned this Jul 8, 2024
@will-lamb will-lamb added Type: Bug Inconsistencies or issues which have caused a problem for users or implementors Package: react-component-library Package/code type labels Jul 8, 2024
@m7kvqbe1
Copy link
Collaborator

m7kvqbe1 commented Jul 8, 2024

Looks like there may be a bit more to this as it's causing a layout shift. It might be the way the example is setup.

2024-07-08 10 32 11

@will-lamb will-lamb force-pushed the bugfix/sidebar-to-overlay-content branch from 391f5df to 0d56a27 Compare July 23, 2024 10:30
fix(Sidebar): Using context to transfer isOpen prop
@will-lamb will-lamb force-pushed the bugfix/sidebar-to-overlay-content branch from 0d56a27 to ea8515f Compare July 23, 2024 10:31
Copy link

@will-lamb will-lamb merged commit 3ab2bdc into master Jul 23, 2024
21 of 23 checks passed
@will-lamb will-lamb deleted the bugfix/sidebar-to-overlay-content branch July 23, 2024 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: react-component-library Package/code type Type: Bug Inconsistencies or issues which have caused a problem for users or implementors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants