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 Toast moving up and down when window is scrolled #2245

Merged

Conversation

yangwooseong
Copy link
Collaborator

@yangwooseong yangwooseong commented May 28, 2024

Self Checklist

  • I wrote a PR title in English and added an appropriate label to the PR.
  • I wrote the commit message in English and to follow the Conventional Commits specification.
  • I added the changeset about the changes that needed to be released. (or didn't have to)
  • I wrote or updated documentation related to the changes. (or didn't have to)
  • I wrote or updated tests related to the changes. (or didn't have to)
  • I tested the changes in various browsers. (or didn't have to)
    • Windows: Chrome, Edge, (Optional) Firefox
    • macOS: Chrome, Edge, Safari, (Optional) Firefox

Related Issue

  • None

Summary

2024-05-28.2.15.48.mov

(강제로 body의 height를 늘려서 스크롤했을 때 토스트가 이동하는 모습)

스크롤을 하면 토스트 위치가 바뀌는 버그가 있어서 이를 수정합니다.

Details

  • ToastProvider의 container를 스크롤하면 ToastContainer의 위치가 바뀔 수 있어서 생긴 버그입니다. ToastContainer의 position 을 absolute가 아닌 fixed로 변경합니다.

Breaking change? (Yes/No)

  • No

References

  • None

@yangwooseong yangwooseong added the fix PR related to bug fix label May 28, 2024
@yangwooseong yangwooseong self-assigned this May 28, 2024
Copy link

changeset-bot bot commented May 28, 2024

🦋 Changeset detected

Latest commit: adc9bf5

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

This PR includes changesets to release 2 packages
Name Type
@channel.io/bezier-react Patch
bezier-figma-plugin 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

channeltalk bot commented May 28, 2024

Copy link

codecov bot commented May 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.57%. Comparing base (b9b77e1) to head (adc9bf5).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2245   +/-   ##
=======================================
  Coverage   84.57%   84.57%           
=======================================
  Files         134      134           
  Lines        2878     2878           
  Branches      869      860    -9     
=======================================
  Hits         2434     2434           
- Misses        415      439   +24     
+ Partials       29        5   -24     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

Chromatic Report

🚀 Congratulations! Your build was successful!

@yangwooseong yangwooseong merged commit a282c2f into channel-io:main May 29, 2024
9 checks passed
@yangwooseong yangwooseong deleted the WEB-1530/toast-position-fixed branch May 29, 2024 01:09
yangwooseong pushed a commit that referenced this pull request May 29, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @channel.io/bezier-react@2.0.7

### Patch Changes

- Change `position` property of `ToastContainer` to `fixed`
([#2245](#2245)) by
@yangwooseong

- Fix typo in `IconProps` jsdoc
([#2232](#2232)) by
@yangwooseong

- - Fix ReactJS console warnings.
([#2238](#2238)) by
@nabi-chan
- Introduce `useIsomorphicLayoutEffect` hook to use `useLayoutEffect` in
SSR environment.

- Add `AlphaSpinner` component
([#2237](#2237)) by
@yangwooseong

## bezier-figma-plugin@0.5.7

### Patch Changes

-   Updated dependencies
    -   @channel.io/bezier-react@2.0.7

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix PR related to bug fix
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants