Skip to content

Commit

Permalink
fix: update CSS loading path in modal block
Browse files Browse the repository at this point in the history
  • Loading branch information
emipallares committed Dec 23, 2024
1 parent 7aee6b8 commit 9e69740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blocks/modal/modal.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { loadCSS, buildBlock } from '../../scripts/aem.js';

export default async function createModal(contentNodes) {
await loadCSS(`${window.location.origin}/blocks/modal/modal.css`);
await loadCSS('/blocks/modal/modal.css');
const dialog = document.createElement('dialog');
dialog.setAttribute('tabindex', 1);
dialog.setAttribute('role', 'dialog');
Expand Down

0 comments on commit 9e69740

Please sign in to comment.