Skip to content

Fix positioning when appendToBody#14

Merged
andrewrubin merged 4 commits into
mainfrom
bugfix/append-to-body
Jan 29, 2024
Merged

Fix positioning when appendToBody#14
andrewrubin merged 4 commits into
mainfrom
bugfix/append-to-body

Conversation

@andrewrubin
Copy link
Copy Markdown
Member

Description

Passing the appendToBody prop as true was not adding the classnames necessary to determine CSS positioning.

Solution

  • Pass classnames down in all instances, regardless of appendToBody truthiness
  • Remove default position: fixed in favor of CSS positioning modules

@andrewrubin andrewrubin requested a review from liamegan January 29, 2024 23:31
@codesandbox
Copy link
Copy Markdown

codesandbox Bot commented Jan 29, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 29, 2024

🦋 Changeset detected

Latest commit: 0076c57

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

This PR includes changesets to release 1 package
Name Type
@wethegit/react-modal Minor

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

@andrewrubin andrewrubin merged commit 22e9f45 into main Jan 29, 2024
@github-actions github-actions Bot mentioned this pull request Jan 29, 2024
@andrewrubin andrewrubin deleted the bugfix/append-to-body branch August 20, 2024 00:09
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