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

Tooltip component #63

Merged
merged 5 commits into from
Oct 20, 2023
Merged

Tooltip component #63

merged 5 commits into from
Oct 20, 2023

Conversation

ksalin
Copy link
Contributor

@ksalin ksalin commented Sep 27, 2023

No description provided.

@ksalin ksalin requested a review from a team September 27, 2023 12:29
@ksalin ksalin self-assigned this Sep 27, 2023
 - Replace new tooltip implementation by using existing Popup component
 - Add a floating example of tooltip using Floating UI in the story
 - Modify existing Popup component so that empty title does not take space
Comment on lines 64 to 81
<div style={{ height: '120px' }}>
<div
style={{ display: 'inline-block' }}
ref={refs.setReference}
{...getReferenceProps()}
>
<Button label='Hover over this button to show a tooltip' />
</div>
{isOpen && (
<div
ref={refs.setFloating}
style={floatingStyles}
{...getFloatingProps()}
>
<Tooltip arrow='top'>Floating tooltip for the button</Tooltip>
</div>
)}
</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tämä osuus pitäs olla itseasiassa tooltip-komponentin sisällä. Eli tooltipin pitäs itsessään osata kellua. Muuten tää näyttää hyvältä 👍

Copy link
Collaborator

Choose a reason for hiding this comment

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

Rajaus meni vähän väärin mutta tuo floating UI osuus Tooltip-komponentin sisälle siis

@Hartzi Hartzi assigned Hartzi and unassigned ksalin Oct 20, 2023
@Hartzi Hartzi merged commit 59486fb into main Oct 20, 2023
@Hartzi Hartzi deleted the feature/tooltip branch November 8, 2023 11:20
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.

3 participants