Files
vault/ui/lib/core/addon/components/alert-inline.hbs
claire bontempo 61ee28ba3b UI: HDS adoption update <AlertInline> component to use Hds::Alert (#24299)
* replace paddingTop with clas

* use hds alert for AlertInline component

* remve isSmall arg

* add test selector back

* remove mimicRefresh arg

* update assertion for alert inline component

* update string-list

* use alert inline for string-list

* add changelog

* update block instances of alert inline

* remove p tags from test selectors

* minor cleanup
2023-12-01 00:57:32 +00:00

18 lines
403 B
Handlebars

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: BUSL-1.1
~}}
<Hds::Alert
{{did-update this.refresh @message}}
@type="compact"
@color={{this.color}}
@icon={{if this.isRefreshing "loading"}}
data-test-inline-alert
...attributes
as |A|
>
{{#unless this.isRefreshing}}
<A.Description data-test-inline-error-message>{{@message}}</A.Description>
{{/unless}}
</Hds::Alert>