Skip to content

Commit 064a61e

Browse files
committed
New bundles
1 parent a0b4f26 commit 064a61e

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

src/css/bundle.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Project: kromacss
3-
Version: 1.0.2
3+
Version: 1.0.6
44
Description: A modern, lightweight, and dependency-free CSS framework designed for simplicity, speed, and adaptability.
55
Author: Altxria Inc.
66
License: CC BY-ND 4.0

src/js/bundle.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Project: kromacss
3-
Version: 1.0.2
3+
Version: 1.0.6
44
Description: A modern, lightweight, and dependency-free CSS framework designed for simplicity, speed, and adaptability.
55
Author: Altxria Inc.
66
License: CC BY-ND 4.0
@@ -999,10 +999,13 @@ function initializeKromaFileUploadComponents() {
999999
function appendFileToList(file, listContainer) {
10001000
const listItem = document.createElement('div');
10011001
listItem.className = 'kroma-file-upload-list-item';
1002-
listItem.innerHTML = `
1003-
<span>${file.name}</span>
1004-
<button aria-label="Remove file">&times;</button>
1005-
`;
1002+
const fileNameSpan = document.createElement('span');
1003+
fileNameSpan.textContent = file.name;
1004+
const removeButton = document.createElement('button');
1005+
removeButton.setAttribute('aria-label', 'Remove file');
1006+
removeButton.textContent = '×';
1007+
listItem.appendChild(fileNameSpan);
1008+
listItem.appendChild(removeButton);
10061009
// Handle remove file
10071010
listItem.querySelector('button').addEventListener('click', () => {
10081011
listItem.remove();

0 commit comments

Comments
 (0)