Skip to content

Self-hosted homelab infrastructure visualizer — interactive network diagram with live status monitoring

fix: subtle hover border (#8b949e) and remove redundant tabIndex on button elements

Pouzor988b804b9010
diff --git a/frontend/src/components/modals/NodeModal.tsx b/frontend/src/components/modals/NodeModal.tsx
index f45514d..d6b0976 100644
--- a/frontend/src/components/modals/NodeModal.tsx
+++ b/frontend/src/components/modals/NodeModal.tsx
@@ -139,7 +139,6 @@ export function NodeModal({ open, onClose, onSubmit, initial, title = 'Add Node'
type="button"
onClick={() => setIconPickerOpen((o) => !o)}
className={`flex items-center justify-between gap-2 h-8 px-3 bg-[#21262d] border border-[#30363d] text-sm transition-colors w-full cursor-pointer ${modalStyles['modal-interactive']} ${modalStyles['modal-radius']}`}
- tabIndex={0}
aria-label="Icon picker trigger"
>
<span className="flex items-center gap-2 min-w-0">
@@ -186,7 +185,6 @@ export function NodeModal({ open, onClose, onSubmit, initial, title = 'Add Node'
title={entry.label}
onClick={() => { set('custom_icon', isSelected ? undefined : entry.key); setIconPickerOpen(false) }}
className={`flex items-center justify-center w-7 h-7 rounded transition-colors cursor-pointer ${modalStyles['modal-interactive']}`}
- tabIndex={0}
aria-label={`Select icon ${entry.label}`}
style={{
background: isSelected ? '#00d4ff22' : 'transparent',
diff --git a/frontend/src/components/modals/modal-interactive.module.css b/frontend/src/components/modals/modal-interactive.module.css
index 022d6a2..45650b5 100644
--- a/frontend/src/components/modals/modal-interactive.module.css
+++ b/frontend/src/components/modals/modal-interactive.module.css
@@ -22,6 +22,6 @@
}
.modal-interactive:hover,
.modal-interactive:focus {
- border-color: #fff !important;
+ border-color: #8b949e !important;
outline: none;
}