polaris icon indicating copy to clipboard operation
polaris copied to clipboard

Alignment of icons incorrect when using as prefix value of TextField

Open cargix1 opened this issue 9 years ago • 1 comments

Issue summary

The vertical alignment of an Icon component is incorrect when using as prefix value of TextField. The color of the icon also looks to be incorrect.

Expected behavior

I'd expect the search icon to appear like it does within the Shopify orders screen.

screen shot 2017-06-10 at 21 15 49

Actual behavior

The icon is dark black rather then the grey color and positioned too close to the top of the textfield.

screen shot 2017-06-10 at 21 14 30

Steps to Reproduce the Problem

<TextField type="search" placeholder="Search ..." prefix={
  <Icon source="search"></Icon>
}></TextField>

Specifications

  • Polaris version: 1.0.3
  • React version: 15.4.2
  • Browser: Chrome
  • Device: Macbook Pro
  • Operating System: Mac OS Sierra

cargix1 avatar Jun 10 '17 20:06 cargix1

Thanks for the issue, @cargix1. I think this is the same issue as https://github.com/Shopify/polaris/issues/60, so I’ll close this one in favour of that issue.

lemonmade avatar Jun 11 '17 17:06 lemonmade