Files
threshold-ui/ui/desktop/app/components/settings-card/index.hbs
T
Cameron Perera eb9fe573b8 Icu 11937 foundation components retire rose typography styles (#2810)
* 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
2025-05-15 14:48:27 -05:00

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>