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 layout issue with hidden DrawerToggleButtons #1436

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

linusfj
Copy link
Member

@linusfj linusfj commented Nov 20, 2023

Closes #1364.

Resolve an issue where the DrawerToggleButtons component was causing a layout shift even when it was supposed to be hidden.

- Add a condition to check if all buttons are hidden on md screens and above.
- Update the conditional rendering logic in DrawerToggleButtons component to prevent rendering when the above condition is met or when there are no buttons.
@Hallbergs Hallbergs self-requested a review November 21, 2023 09:27
Copy link
Member

@Hallbergs Hallbergs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as intended! :) @jacobwod @jesade-vbg do you guys want to test before merging?

@linusfj linusfj merged commit 073283e into develop Nov 30, 2023
@linusfj linusfj deleted the fix/1364-search-field-location branch November 30, 2023 11:52
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.

2 participants