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(Popover): to be attached in body when not in a modal #4646

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthprost
Copy link
Collaborator

Summary

Type

  • Enhancement

Summarise concisely:

What is expected?

Fix <Popover /> portal target to be document.body if not inside a modal.
The popover needs space and attaching it to the direct parent can be tricky as the parent can have very narrow space. This way we ensure it has all the space available and in case it's inside a modal we attach it to the parent like we do before.

@matthprost matthprost added the enhancement New feature or request label Jan 8, 2025
@matthprost matthprost requested a review from a team January 8, 2025 13:26
@matthprost matthprost self-assigned this Jan 8, 2025
@matthprost matthprost requested review from johnrazeur and removed request for a team January 8, 2025 13:26
@matthprost matthprost requested a review from lisalupi as a code owner January 8, 2025 13:26
Copy link

changeset-bot bot commented Jan 8, 2025

🦋 Changeset detected

Latest commit: c5846cc

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@ultraviolet/ui Patch
@ultraviolet/form Patch
@ultraviolet/plus Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

codecov bot commented Jan 8, 2025

Codecov Report

Attention: Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.

Project coverage is 87.41%. Comparing base (0dc816f) to head (c5846cc).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
packages/ui/src/components/Popover/index.tsx 71.42% 2 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4646      +/-   ##
==========================================
- Coverage   87.44%   87.41%   -0.04%     
==========================================
  Files         335      335              
  Lines       12733    12740       +7     
  Branches     3528     3482      -46     
==========================================
+ Hits        11135    11137       +2     
- Misses       1598     1603       +5     
Files with missing lines Coverage Δ
packages/ui/src/components/Popover/index.tsx 95.23% <71.42%> (-4.77%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0dc816f...c5846cc. Read the comment docs.

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

Successfully merging this pull request may close these issues.

4 participants