Skip to content

Commit

Permalink
fix: lint and prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ga-devfront committed Feb 21, 2025
1 parent 42bada2 commit f751218
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
5 changes: 3 additions & 2 deletions _dev/src/scss/externals/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ $media-query-mobile: 992px;
border: none;
border-radius: var(--#{$ua-prefix}border-radius);
box-shadow: var(--#{$ua-prefix}box-shadow-dialog);
transition: display var(--#{$ua-prefix}dialog-animation-duration) ease-out allow-discrete,
overlay var(--#{$ua-prefix}dialog-animation-duration) ease-out allow-discrete;
transition:
display var(--#{$ua-prefix}dialog-animation-duration) ease-out allow-discrete,
overlay var(--#{$ua-prefix}dialog-animation-duration) ease-out allow-discrete;
animation: dialog-hide var(--#{$ua-prefix}dialog-animation-duration) ease-out forwards;

&::backdrop {
Expand Down
2 changes: 1 addition & 1 deletion _dev/src/scss/externals/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
@use "dialog";
@use "dialog";
4 changes: 2 additions & 2 deletions _dev/src/ts/external.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0
*/
document.addEventListener('DOMContentLoaded', function() {
document.addEventListener('DOMContentLoaded', function () {
const dialog = document.getElementById('dialog-update-notification');

if (dialog instanceof HTMLDialogElement) {
setTimeout(() => {
dialog.showModal();
}, 1500);
}

const closeButton = dialog?.querySelector('[data-dismiss="dialog"]');

if (closeButton) {
Expand Down

0 comments on commit f751218

Please sign in to comment.