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:
1 parent
939dd16409
commit
445d789344
2 files changed
+19
-13
No files matched your search
@@ -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>
|
||||
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user