fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

External css applied for border is not rendered properly on zoom-out when borderless prop is true in TextField component.

Open mdmdakbar opened this issue 8 years ago • 1 comments

Product affected- VSTS

Codepen link - https://codepen.io/anon/pen/zpPNvO

On rendering TextField with borderless prop as true and applying some border css on the div wrapping TextField, border is inconsistent on Zoom-out. My screen resolution is 2560*1440. Also, on changing the resolution, you can see variations in the border width

On zoom 75% - textbox

On zoom 50% textbox2 On zoom 25% textbox3

In our product - timeout

mdmdakbar avatar Jan 06 '18 08:01 mdmdakbar

Hey @mdmdakbar, thanks for bringing this to our attention. Unfortunately, I have a feeling that this is largely something out of Fabric's control without changing the design to include larger borders. See this SO post for a brief discussion of what I mean: https://stackoverflow.com/questions/47349990/border-disappears-on-zoom-out-in-in-all-browser

Basically, how 1px borders show up will depend on the device's pixel density and how the OS/browser handle sub-pixel rendering, which you see when zooming in and out. To this point, I can actually repro the issue in your Codepen at 50% zoom on my low-DPI external 27" monitor, and at 33% zoom on my high-DPI (2x) laptop monitor.

My sense is this is not something we should target to fix, so I'll go ahead and close for now--but please feel free to reopen if you disagree or have an idea for a solution.

Jahnp avatar Jan 08 '18 18:01 Jahnp