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 {
|
||||
background-color: $green-100;
|
||||
background-color: $green-050;
|
||||
color: $green-700;
|
||||
}
|
||||
|
||||
&.has-extra-padding {
|
||||
padding: $size-11 $spacing-xxs;
|
||||
}
|
||||
}
|
||||
|
||||
.tag.is-outlined {
|
||||
|
|
|
@ -29,22 +29,31 @@
|
|||
{{#if this.isPki}}
|
||||
{{#if @isEngine}}
|
||||
<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" />
|
||||
Return to old PKI
|
||||
</LinkToExternal>
|
||||
</span>
|
||||
{{else}}
|
||||
{{#if this.shouldHidePkiBetaModal}}
|
||||
<LinkTo @route="vault.cluster.secrets.backend.pki.overview" class="tag is-success is-borderless">
|
||||
<Icon @name="key" />
|
||||
New PKI UI available
|
||||
</LinkTo>
|
||||
<span>
|
||||
<LinkTo
|
||||
@route="vault.cluster.secrets.backend.pki.overview"
|
||||
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}}
|
||||
<button
|
||||
type="button"
|
||||
class="tag is-success is-v-centered text-button is-underline"
|
||||
{{on "click" (action (mut this.modalOpen) true)}}
|
||||
class="tag is-success is-v-centered text-button is-underline has-text-weight-semibold has-extra-padding"
|
||||
{{on "click" (fn (mut this.modalOpen) true)}}
|
||||
data-test-old-pki-beta-button
|
||||
>
|
||||
<Icon @name="key" />
|
||||
|
@ -52,7 +61,7 @@
|
|||
</button>
|
||||
<Modal
|
||||
@title="New PKI Beta"
|
||||
@onClose={{action (mut this.modalOpen) false}}
|
||||
@onClose={{fn (mut this.modalOpen) false}}
|
||||
@isActive={{this.modalOpen}}
|
||||
@showCloseButton={{true}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue