fix: left menu - button to remove SO ok on Firefox too

This commit is contained in:
gaelle morin 2021-06-29 16:29:29 +02:00
parent c622111fe2
commit 35d6a2f74e
No known key found for this signature in database
GPG Key ID: 028426702B95CF9C
2 changed files with 2 additions and 5 deletions

View File

@ -225,9 +225,6 @@ nav#main__menu {
orbit-menu-contact-removed {
display: none;
button {
display: contents;
}
}
&:hover {
@ -253,7 +250,7 @@ nav#main__menu {
position: relative;
top: -28px;
display: block;
left: calc(100% - 50px);
left: calc(100% - 44px);
padding-top: 5px;
button {

View File

@ -1,5 +1,5 @@
if componentSet.has('chat')
solid-widget(name='orbit-menu-contact-removed')
template ${value != "" ? `
<solid-delete class="menu-delete-button button-remove icon children-icon-close" data-src='${value}' data-label="" confirmation-type="confirm" confirmation-message="Vous êtes sur le point de retirer ce contact. Etes-vous sûr ?" confirmation-submit-text="Oui, valider" confirmation-cancel-text="Non, c'est une erreur" confirmation-submit-class="segment sm-full text-center button text-xsmall text-bold text-uppercase reversed color-secondary bordered padding-right-medium padding-left-medium margin-right-xsmall sm-margin-right-none sm-margin-bottom-medium" confirmation-cancel-class="segment sm-full text-center button text-xsmall text-bold text-uppercase color-secondary bordered padding-right-medium padding-left-medium margin-left-xsmall sm-margin-left-none"></solid-delete>` : ""}
<solid-delete class="menu-delete-button button-remove icon children-icon-close" data-src='${value}' data-label="d" confirmation-type="confirm" confirmation-message="Vous êtes sur le point de retirer ce contact. Etes-vous sûr ?" confirmation-submit-text="Oui, valider" confirmation-cancel-text="Non, c'est une erreur" confirmation-submit-class="segment sm-full text-center button text-xsmall text-bold text-uppercase reversed color-secondary bordered padding-right-medium padding-left-medium margin-right-xsmall sm-margin-right-none sm-margin-bottom-medium" confirmation-cancel-class="segment sm-full text-center button text-xsmall text-bold text-uppercase color-secondary bordered padding-right-medium padding-left-medium margin-left-xsmall sm-margin-left-none"></solid-delete>` : ""}
//- Fix: using type confirm, dialog is not available on Firefox, polyfill only works if dialog is a direct child of body