Skip to content

Conversation

@sungik-choi
Copy link
Contributor

@sungik-choi sungik-choi commented Mar 30, 2023

Self Checklist

  • I wrote a PR title in English.
  • I added an appropriate label to the PR.
  • I wrote a commit message in English.
  • I wrote a commit message according to the Conventional Commits specification.
  • I added the appropriate changeset for the changes.
  • [Component] I wrote a unit test about the implementation.
  • [Component] I wrote a storybook document about the implementation.
  • [Component] I tested the implementation in various browsers.
    • Windows: Chrome, Edge, (Optional) Firefox
    • macOS: Chrome, Edge, Safari, (Optional) Firefox
  • [New Component] I added my username to the correct directory in the CODEOWNERS file.

Related Issue

None

Summary

Tooltipcontainer 속성을 추가합니다.

Details

Overlay 와 동일하게, 별도의 container 속성을 지정하면 해당 노드 아래에 렌더되도록 할 수 있습니다.

Breaking change or not (Yes/No)

No. container를 지정하지 않을 경우 기본값은 getRootElement() 의 반환값으로 동일합니다.

References

None

@sungik-choi sungik-choi added the enhancement Issues or PR related to making existing features better label Mar 30, 2023
@sungik-choi sungik-choi self-assigned this Mar 30, 2023
@changeset-bot
Copy link

changeset-bot bot commented Mar 30, 2023

🦋 Changeset detected

Latest commit: 54bfa00

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 Minor
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

@sungik-choi sungik-choi requested a review from rktguswjd March 30, 2023 09:28
@github-actions
Copy link
Contributor

github-actions bot commented Mar 30, 2023

Chromatic Report

🚀 Congratulations! Your build was successful!

@sungik-choi sungik-choi force-pushed the feat/tooltip-container branch from 463c68c to 54bfa00 Compare March 30, 2023 09:34
Comment on lines -85 to -94
const [showTarget, setShowTarget] = useState(true)

const handleClick = useCallback(() => {
setShowTarget(false)
}, [])
const [container, setContainer] = useState<HTMLDivElement | null>(null)

return (
<Tooltip {...props}>
{ showTarget && (
<Target onClick={handleClick}>
Copy link
Contributor Author

@sungik-choi sungik-choi Mar 30, 2023

Choose a reason for hiding this comment

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

적절하지 않은 스토리라고 판단하여 간단명료한 스토리로 변경

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement Issues or PR related to making existing features better

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants