microsoft/YamUI

Right rail modules need to have a padding-top

Closed this issue ยท 5 comments

Right rail modules need to have a padding-top before the title allowing to stack modules on top of each other without playing with margins (so it's consistent).

image 1

@allobast couldn't you wrap them in a Block with top padding? Why do you need AsideSection itself to have a prop for padding?

Adding @adrianmg as he provided designs for this.

I think designers won't care how we implement this, as long as it looks the way it should. So you could totally have something like this (adjust GutterSize to whatever you need):

<Block topSpacing={GutterSize.LARGE}>
  <AsideSection title="Example title">
    <div>Child Content</div>
  </AsideSection>
</Block>

Oh I see what you're saying! Sure, makes sense!

ya this should be handled by the layout which renders AsideSection, not AsideSection itself