UI: VAULT-12820 Fix styling for pki beta badge (#18782)
* Add underline to beta badge * Update tag styles * Use fn instead of action
This commit is contained in:
parent
6930568076
commit
ab4efd28d0
|
@ -20,9 +20,13 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.is-success {
|
&.is-success {
|
||||||
background-color: $green-100;
|
background-color: $green-050;
|
||||||
color: $green-700;
|
color: $green-700;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.has-extra-padding {
|
||||||
|
padding: $size-11 $spacing-xxs;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.tag.is-outlined {
|
.tag.is-outlined {
|
||||||
|
|
|
@ -29,22 +29,31 @@
|
||||||
{{#if this.isPki}}
|
{{#if this.isPki}}
|
||||||
{{#if @isEngine}}
|
{{#if @isEngine}}
|
||||||
<span>
|
<span>
|
||||||
<LinkToExternal @route="secretsListRoot" class="tag is-borderless is-underline" data-test-new-pki-beta-button>
|
<LinkToExternal
|
||||||
|
@route="secretsListRoot"
|
||||||
|
class="tag is-borderless is-underline has-text-weight-semibold has-extra-padding"
|
||||||
|
data-test-new-pki-beta-button
|
||||||
|
>
|
||||||
<Icon @name="arrow-left" />
|
<Icon @name="arrow-left" />
|
||||||
Return to old PKI
|
Return to old PKI
|
||||||
</LinkToExternal>
|
</LinkToExternal>
|
||||||
</span>
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
{{#if this.shouldHidePkiBetaModal}}
|
{{#if this.shouldHidePkiBetaModal}}
|
||||||
<LinkTo @route="vault.cluster.secrets.backend.pki.overview" class="tag is-success is-borderless">
|
<span>
|
||||||
<Icon @name="key" />
|
<LinkTo
|
||||||
New PKI UI available
|
@route="vault.cluster.secrets.backend.pki.overview"
|
||||||
</LinkTo>
|
class="tag is-success is-borderless is-underline has-text-weight-semibold has-extra-padding"
|
||||||
|
>
|
||||||
|
<Icon @name="key" />
|
||||||
|
New PKI UI available
|
||||||
|
</LinkTo>
|
||||||
|
</span>
|
||||||
{{else}}
|
{{else}}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="tag is-success is-v-centered text-button is-underline"
|
class="tag is-success is-v-centered text-button is-underline has-text-weight-semibold has-extra-padding"
|
||||||
{{on "click" (action (mut this.modalOpen) true)}}
|
{{on "click" (fn (mut this.modalOpen) true)}}
|
||||||
data-test-old-pki-beta-button
|
data-test-old-pki-beta-button
|
||||||
>
|
>
|
||||||
<Icon @name="key" />
|
<Icon @name="key" />
|
||||||
|
@ -52,7 +61,7 @@
|
||||||
</button>
|
</button>
|
||||||
<Modal
|
<Modal
|
||||||
@title="New PKI Beta"
|
@title="New PKI Beta"
|
||||||
@onClose={{action (mut this.modalOpen) false}}
|
@onClose={{fn (mut this.modalOpen) false}}
|
||||||
@isActive={{this.modalOpen}}
|
@isActive={{this.modalOpen}}
|
||||||
@showCloseButton={{true}}
|
@showCloseButton={{true}}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in a new issue