palantir/blueprint

<ButtonGroup> in <InputGroup> has extra margin

Open

#2,805 opened on Aug 15, 2018

View on GitHub
 (10 comments) (0 reactions) (1 assignee)TypeScript (20,263 stars) (2,167 forks)batch import
Package: coreType: bughelp wanted

Description

Environment

  • Package version(s): 3.0.0
  • Browser and OS versions: Chrome 68.0.3440.106 and Safari 11.1.2 on MacOS 10.13.6

Steps to reproduce

  1. Create an <InputGroup>
  2. Create a <ButtonGroup> and assign it to the rightElement of the <InputGroup> in step 1
  3. Add 2 <Button>s to the <ButtonGroup> in step 2

Actual behavior

screen shot 2018-08-15 at 4 13 52 pm

Child <Button>s of a <ButtonGroup> which is the rightElement of an <InputGroup> have extra margins, so they don't line up next to each other.

Expected behavior

Child <Button>s of a <ButtonGroup> which is the rightElement of an <InputGroup> should line up next to each other.

Possible solution

Add a specific rule to reset the margin of a <Button> when it's nested in a <ButtonGroup> that's nested in an <InputGroup>

Contributor guide