question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Tooltip around disabled Button leads to split inside of ButtonGroup

See original GitHub issue

Version

3.2.0

Environment

Mac OS 10.12.6, Safari 10.1.2

Reproduction link

https://codepen.io/anon/pen/MQbybP?editors=0010

temp

Steps to reproduce

Create a ButtonGroup with three buttons, add Tooltip around first one. Disable first button.

    <ButtonGroup>
      <Tooltip title="This text explains what this button does">
        <Button disabled size="small">
          <Icon type="arrow-up" />
        </Button>
      </Tooltip>

      <Button size="small">
        <Icon type="copy" />
      </Button>

      <Button size="small" type="primary">
          <Icon type="edit" />
      </Button>
    </ButtonGroup>

What is expected?

ButtonGroup is visually not split.

What is actually happening?

ButtonGroup gets visually split and button gets rounded on the right.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dengfupingcommented, Feb 8, 2018

@saerdnaer Your tooltip is so long and there is no enough space on the left. It’s designed for avoid that tooltip is out of the browser window. Just make tooltip shorter or leave enough space for tooltip.

0reactions
tangjinzhoucommented, Jul 18, 2018

Still have similar problems. https://codesandbox.io/s/61lqr2m4mr image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is it possible to render a tooltip on a disabled MUI Button ...
I'm trying to create a MUI ButtonGroup with disabled buttons and tooltip. The following code block ...
Read more >
ButtonGroup with Tooltip on disabled Button - CodeSandbox
Activating extension 'vscode.typescript-language-features' failed: Could not find bundled tsserver.js.
Read more >
How to enable Bootstrap tooltip on disabled button
To trigger tooltip on disabled button by wrapping them in <span> span tag and <div> div tag and then adding 'data-toggle','data-placement' and ' ......
Read more >
Buttons - Lightning Design System
Use a disabled attribute when a button can't be clicked. To create a disabled button, append the disabled attribute to the button. Button...
Read more >
Tooltips - Bootstrap
Tooltips can be triggered thanks to an element inside a shadow DOM. ... Hover over the buttons below to see the four tooltips...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found