palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.64k stars 2.17k forks source link

Tooltip Buttons Inside of Button Groups have Incorrect margin #3232

Open mulholo opened 5 years ago

mulholo commented 5 years ago

Environment

Steps to reproduce

  1. Put 2 buttons side by side in a button group
  2. Place a Tooltip around the second button

This is the code that is the causing the error:

<ButtonGroup>
  <AnchorButton
    text={'View All Users'}
    href={'wow'}
  />
  <Tooltip
    content={'Undo this import'}
  >
    <Button
      text={'Roll Back'}
      onClick={() => alert('implement roll back')}
      intent={Intent.DANGER}
    />
  </Tooltip>
</ButtonGroup>

Actual behavior


Expected behavior

screenshot 2018-12-13 at 14 47 29

Possible solution

giladgray commented 5 years ago

@mulholio please upgrade to 3.10.0. I cannot reproduce this issue: https://codesandbox.io/s/q96r8ov9xw (see CoreExample.tsx)

giladgray commented 5 years ago

do you perhaps have an errant CSS rule in your app (like a lingering :last-child) that is interfering here?