fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

DocumentCard in compact layout has 1px blank line below preview image

Open fengyue1013 opened this issue 7 years ago • 5 comments

Environment Information

  • Package version(s): (6.156.0)
  • Browser and OS versions: (chrome 72.0.3626.121)

Please provide a reproduction of the bug in a codepen:

It could be observed on the demo page: https://developer.microsoft.com/en-us/fabric#/components/documentcard

Actual behavior:

image There is one-pixel blank line below the preview image

Expected behavior:

There is no blank line below the preview image

Priorities and help requested:

Are you willing to submit a PR to fix? (No)

Requested priority: (High)

Products/sites affected: (SharePoint)

fengyue1013 avatar Mar 18 '19 07:03 fengyue1013

The preview has height 106px + border-top/botttom = 108px, while the document card has height 109px.

So there is one-pixel blank. Is this by-design??

fengyue1013 avatar Mar 18 '19 07:03 fengyue1013

@yiminwu it seems you are the codeowner for DocumentCard. Is this by design or is it a bug that requires a simple fix?

khmakoto avatar Mar 18 '19 18:03 khmakoto

Seems like a bug. Can confirm with design's red lines, but I doubt this is intentional.

Screener should catch this, but its difficult to see unless you look at computed tab. Has happened to me.

KevinTCoughlin avatar Mar 19 '19 04:03 KevinTCoughlin

@KevinTCoughlin I doubt this is intentional too, but I want to double check before going in and making changes. Do you know who to contact for this?

khmakoto avatar Mar 19 '19 17:03 khmakoto

:tada:This issue was addressed in #8461, which has now been successfully released as [email protected].:tada:

Handy links:

msft-github-bot avatar Mar 27 '19 12:03 msft-github-bot