feat: 🎸 Update PR with suggestions

- Apply forgoten padding and alignment styles for header.

BREAKING CHANGE: 🧨 - Refactor to use named block withint the card component.
This commit is contained in:
Carlos Alcaide committed 2021-06-16 13:42:57 -07:00
1 parent 939dd16409
commit 445d789344
2 files changed
+19 -13

No files matched your search

+11 -13
View File
@@ -1,17 +1,15 @@
<section class='card'>
<header class='card-header'>
<div>
{{#if @icon}}
<Rose::Icon @name={{@icon}} @size='medium' />
{{/if}}
{{@heading}}
</div>
{{yield (hash header=(component 'rose/anonymous'))}}
{{#if @heading}}
<div>
{{#if @icon}}
<Rose::Icon @name={{@icon}} @size='medium' />
{{/if}}
{{@heading}}
</div>
{{/if}}
{{yield to='header'}}
</header>
{{yield
(hash
body=(component 'rose/anonymous' tagName='div' class='card-body')
footer=(component 'rose/anonymous' tagName='footer' class='card-footer')
)
}}
<div class='card-body'>{{yield to='body'}}</div>
<footer class='card-footer'>{{yield to='footer'}}</footer>
</section>
+8
View File
@@ -371,6 +371,14 @@
.card-header {
border-bottom: sizing.rems(xxxxs) solid var(--ui-gray-subtler-3);
display: flex;
justify-content: flex-start;
padding: sizing.rems(s);
div {
display: flex;
flex-shrink: 1;
width: 100%;
}
}
.card-body {