fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

MessageBar has style issues when displayed in a Fabric Dialog

Open lupine86 opened this issue 9 years ago • 5 comments

Bug Report

  • Package version(s): 2.10.3
  • Browser and OS versions: (fill this out if relevant) tested with Chrome

Priorities and help requested (not applicable if asking question):

Are you willing to submit a PR to fix? Yes

Requested priority: Normal

Products/sites affected: VSTS

Describe the issue:

When using a MessageBar within a Dialog the icon is given a "line-height" style that causes an alignment issue with the text in the Message Bar.

Actual behavior:

Misaligned text and icon in MessageBar.

Expected behavior:

Aligned text and icon in MessageBar

If applicable, please provide a codepen repro:

Code Pen repro shows the issue clearly. http://codepen.io/lupine86/pen/YZdjJw

lupine86 avatar Mar 31 '17 16:03 lupine86

This might be a solution we fix with flexbox vs lineheight. Need to look at all of the various scenarios. Thanks for the codepen though, that helps a ton!

micahgodbolt avatar Mar 31 '17 18:03 micahgodbolt

Ah, line-height is inherited from parent. So lineheight set on dialog is messing with the message bars.

micahgodbolt avatar Mar 31 '17 18:03 micahgodbolt

Line-height was added to dialog to fix some IE9 bugs. I can remove that overly broad line-height and you shouldn't have a problem

micahgodbolt avatar Mar 31 '17 18:03 micahgodbolt

Removed the nasty extra line-height. Closing this one down.

micahgodbolt avatar Mar 31 '17 22:03 micahgodbolt

@micahgodbolt Thanks for the quick investigation and turn around!

lupine86 avatar Apr 03 '17 18:04 lupine86