refactor: use Phosphor icon for file list drag handle

Replace the Lucide grip-vertical icon with Phosphor's dots-six-vertical, in line with the project-wide move to Phosphor.
This commit is contained in:
Atharva Bedekar
2026-10-25 22:24:06 +05:30
parent 49ab2ef17f
commit 2f1178ddd0
2 changed files with 4 additions and 4 deletions
+3 -1
View File
@@ -32,7 +32,9 @@ export function createDragHandle(): HTMLElement {
const label = trText('Drag to reorder');
handle.title = label;
handle.setAttribute('aria-label', label);
handle.innerHTML = '<i data-lucide="grip-vertical" class="w-4 h-4"></i>';
const icon = document.createElement('i');
icon.className = 'ph ph-dots-six-vertical text-base';
handle.appendChild(icon);
return handle;
}
+1 -3
View File
@@ -47,9 +47,7 @@ describe('createDragHandle', () => {
const handle = createDragHandle();
expect(handle.classList.contains('drag-handle')).toBe(true);
expect(handle.getAttribute('aria-label')).toBe('Drag to reorder');
expect(
handle.querySelector('[data-lucide="grip-vertical"]')
).not.toBeNull();
expect(handle.querySelector('i.ph.ph-dots-six-vertical')).not.toBeNull();
});
});