Skip to content

ButtonGroup with Icon and Text children are missaligned #4079

@indiragp

Description

@indiragp

Issue summary

When you create a ButtonGroup with size="slim" where one Button is text and the other button is an Icon, in a full-screen view the buttons are not-aligned. This works well for any bigger button sizes and when the screen is small (inspecting on chrome on a phone view).

Expected behavior

When creating a ButtonGroup if one Button is text and another button is an Icon, they should be aligned
Screen Shot 2021-03-23 at 11 45 15 AM

Actual behavior

There is a 1px missalignment between the button with text and the button with an Icon
Screen Shot 2021-03-23 at 11 44 41 AM

Steps to reproduce the problem

Reduced test case

CodeSandbox to reproduce the issue.

Specifications

  • Are you using the React components? (Y/N):Y
  • Polaris version number: 6.1.0
  • Browser: Chrome:89.0.4389.90
  • Device: MacBook Pro
  • Operating System: macOS 10.15.7

Metadata

Metadata

Labels

BugSomething is broken and not working as intended in the system.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions