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

feat: Add allow-overflow to navigation-immersive #213

Merged
merged 4 commits into from
Jun 11, 2024

Conversation

eKoopmans
Copy link
Contributor

@eKoopmans eKoopmans commented Jun 11, 2024

We're adding a dropdown to our folio immersive-nav-bar, and the overflow: hidden was causing issues. I don't know if any consumers rely on the overflow being hidden, so I added a new attribute to disable it.

Here's what the demo looks like without allow-overflow:

image

And with:

image

https://desire2learn.atlassian.net/browse/VOY-2250

@eKoopmans eKoopmans requested a review from a team as a code owner June 11, 2024 18:53
github-actions bot and others added 2 commits June 11, 2024 14:59
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
allowOverflow: {
type: Boolean,
reflectToAttribute: true
},
Copy link
Contributor

Choose a reason for hiding this comment

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

@dbatiste is working on some changes to how our dropdowns work... not sure if it might actually solve this?

Copy link
Contributor

@dbatiste dbatiste Jun 11, 2024

Choose a reason for hiding this comment

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

Yeah it should. We're keeping it sorta under wraps for a little bit while Margaree kicks the tires.

Looks like this was added back here... 3ef8acd (this PR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ooh exciting, popup API stuff?

Copy link
Contributor

Choose a reason for hiding this comment

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

Dave, does it make sense to add a story/task to your stuff to circle back to this change when everything is finished and undo it?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah I noticed it was from the original PR that added navigation-immersive, not sure what the motivation was for the overflow specifically. The regular (non-immersive) navigation allows overflow, which is how things like this work:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

@dlockhart , Yeah I think so.

I suspect this is to handle this case. But perhaps not just that case.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, I remember we ran into this issue pretty much immediately, when we implemented the dropdowns and added them to the main nav. I recall having to find a way to avoid the overflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just confirmed that we're already separately handling the overflow from Dave's screenshot, glad you called it out though:

image

Copy link
Contributor

Choose a reason for hiding this comment

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

Ooh exciting, popup API stuff?

Eventually, hopefully/yes. But initially, it will just be adapting the existing positioning code to unblock some other things.

@eKoopmans
Copy link
Contributor Author

Thanks for the speedy review Daves!

@eKoopmans eKoopmans merged commit 82ce51c into main Jun 11, 2024
3 checks passed
@eKoopmans eKoopmans deleted the ekoopmans/allow-overflow branch June 11, 2024 20:49
Copy link

🎉 This PR is included in version 6.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants