* refactor: 💡 update _typography stylesheet ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 update header margin styles into single rule ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 add remove-header-margin class ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 remove 'header' class ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * test: 💍 fix failing tests for branded-card in desktop ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 update style rule to use :where() ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 rename remove-header-margin to remove-margin ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937 * refactor: 💡 update style comment ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11937
36 lines
822 B
Handlebars
36 lines
822 B
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<Hds::Card::Container @level='mid' @hasBorder={{true}}>
|
|
<div class='header-and-icon'>
|
|
<Hds::IconTile @icon={{@icon}} @size='small' />
|
|
<Hds::Text::Display @tag='h4' class='remove-margin'>
|
|
{{@header}}
|
|
</Hds::Text::Display>
|
|
|
|
{{#if (has-block 'state')}}
|
|
{{yield to='state'}}
|
|
{{/if}}
|
|
|
|
{{#if (has-block 'action')}}
|
|
<div class='action'>
|
|
{{yield to='action'}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
{{#if @description}}
|
|
<Hds::Text::Body @tag='p' @color='faint' @size='100'>
|
|
{{@description}}
|
|
</Hds::Text::Body>
|
|
{{/if}}
|
|
|
|
{{! this yields the body from consumer }}
|
|
{{#if (has-block 'body')}}
|
|
<div class='content'>
|
|
{{yield to='body'}}
|
|
</div>
|
|
{{/if}}
|
|
</Hds::Card::Container> |