fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Multiple Message Bars have wrong margins

Open lupine86 opened this issue 9 years ago • 1 comments

Bug Report

  • Package version(s): 2.10.4 and latest
  • Browser and OS versions: n/a

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

Are you willing to submit a PR to fix? Yes

Requested priority: Low

Products/sites affected: VSTS

Describe the issue:

When you have multiple Message Bars the margins are not correct. The first and second Message have no space between them. The 2nd and 3rd have 6 pixels. So does the 3rd and 4th and so on.

Actual behavior:

No space between first and second MessageBar

Expected behavior:

Message Bars should have consistent spacing.

If applicable, please provide a codepen repro:

http://codepen.io/lupine86/pen/zZXvOZ

lupine86 avatar Apr 04 '17 20:04 lupine86

The issue is caused by this style on line 149:

// Add space between adjacent MessageBars.
.root + .root {
  margin-bottom: 6px;
}

That combinator selector targets any MessageBar that immediately follows another. So it should be margin-top instead of margin-bottom.

mikewheaton avatar Apr 04 '17 21:04 mikewheaton