UI: HDS adoption replace footer element (#24191)

* Replace footer with `Hds::AppFooter`

* Remove unused `.footer` styles

* Add changelog entry

* Use `doc-link` helper for 'Documentation' link
This commit is contained in:
Alex
2023-11-20 18:00:03 +00:00
committed by GitHub
parent bcbd45b380
commit 4cf837d56a
4 changed files with 18 additions and 45 deletions

3
changelog/24191.txt Normal file
View File

@@ -0,0 +1,3 @@
```release-note:improvement
ui: Implement Helios Design System footer component
```

View File

@@ -30,7 +30,6 @@
@import './core/control';
@import './core/field';
@import './core/file';
@import './core/footer';
@import './core/inputs';
@import './core/json-diff-patch';
@import './core/label';

View File

@@ -1,20 +0,0 @@
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
.footer {
background-color: transparent;
border-top: $base-border;
padding: $spacing-24 $spacing-20;
margin-top: auto;
span:not(:first-child) {
display: inline-block;
padding: 0 0.5rem;
@include until($mobile) {
display: none;
}
}
}

View File

@@ -4,32 +4,23 @@
~}}
{{outlet}}
<footer class="footer has-text-grey has-text-centered">
<span class="is-inline-block">
<Icon @name="hashicorp" aria-hidden="true" class="has-text-grey-light" />
&copy;
{{date-format (now) "yyyy"}}
HashiCorp
</span>
<span>
<ExternalLink @href={{changelog-url-for this.auth.activeCluster.leaderNode.version}} class="link has-text-grey">
Vault
{{this.auth.activeCluster.leaderNode.version}}
</ExternalLink>
</span>
<Hds::AppFooter as |AF|>
<AF.Link @href={{changelog-url-for this.auth.activeCluster.leaderNode.version}}>
Vault
{{this.auth.activeCluster.leaderNode.version}}
</AF.Link>
{{#if (is-version "OSS")}}
<span>
<ExternalLink @href="https://hashicorp.com/products/vault/trial?source=vaultui" class="link has-text-grey">
Upgrade to Vault Enterprise
</ExternalLink>
</span>
<AF.Link @href="https://hashicorp.com/products/vault/trial?source=vaultui">
Upgrade to Vault Enterprise
</AF.Link>
{{/if}}
<span>
<DocLink @path="/vault" class="has-text-grey">
Documentation
</DocLink>
</span>
</footer>
<AF.Link @href={{doc-link "/vault"}}>
Documentation
</AF.Link>
<AF.LegalLinks />
</Hds::AppFooter>
{{#if (eq this.env "development")}}
<div class="env-banner level development">
<div class="level-item notification">