Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Tooltip component and InputField behaviour is different #112

Open
tomanagle opened this issue Mar 17, 2021 · 0 comments
Open

Tooltip component and InputField behaviour is different #112

tomanagle opened this issue Mar 17, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@tomanagle
Copy link
Contributor

Describe the bug
The tooltip prop on the InputField component requires the user click a button and the tooltip will appear. By default, the tooltip in props has a white background. When you make a tooltip with the Tooltip component, following the instructions in the Bumbag docs, the tooltip is shown on hover and by default has a black background.

With InputField component

<InputField label="This is the label" tooltip="InputField tooltip" />

With Tooltip component

<Tooltip content="What was the best thing that happened to you today?" placement="right">
    <Button>Hover me</Button>
</Tooltip>

To Reproduce

See this Codesandbox: https://codesandbox.io/s/bumbag-tooltips-j9uiq?file=/src/App.js:656-725

Expected behavior
Either the defaults should have the same behaviour and look the same, or the Tooltip component should allow you to customise it so you can replicate the props functionality.

Or, the label component should include tooltip props.

@jxom jxom added the enhancement New feature or request label Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants