0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added logic to custom portal icon delete

no refs.
- fixed issue that users can't reselect custom icon in portal by making the delete button only visible when the custom icon is selected
This commit is contained in:
Peter Zimon 2020-09-04 16:10:46 +02:00
parent d65195aba4
commit ed1433b809
2 changed files with 7 additions and 1 deletions

View file

@ -206,9 +206,11 @@
alt="icon"
data-test-icon-img
>
{{#if (eq this.buttonIcon this.customIcon)}}
<button type="button" class="gh-btn gh-btn-hover-red gh-portal-button-deleteicon" {{action "deleteCustomIcon"}}>
<span> {{svg-jar "trash" class="w5 h5"}} </span>
</button>
{{/if}}
{{else}}
<button type="button" class="gh-btn gh-portal-button-uploadicon" onclick={{action "triggerFileDialog"}} data-test-image-upload-btn="icon">
<span>{{svg-jar "add" class="w5 h5"}}</span>

View file

@ -437,7 +437,11 @@
width: 50px;
}
.gh-portal-custom-icon:hover .gh-portal-button-custom {
.gh-portal-button-custom.selected-icon:hover {
box-shadow: 0px 0px 0px 1px color-mod(var(--blue) a(40%));
}
.gh-portal-custom-icon:hover .gh-portal-button-custom.selected-icon {
display: none;
}