style(ui): format surface keyboard component and tests

This commit is contained in:
Sameh Khamis committed 2026-09-12 18:45:30 -07:00
1 parent e1ffb9c572
commit bd6ba07878
3 files changed
+55 -14

No files matched your search

+7 -2
View File
@@ -34,8 +34,13 @@ export function createSurfaceKeyboard({
}
if (event.key !== 'Tab') return;
const order = [
...root.querySelectorAll('button, input, [href], [tabindex]:not([tabindex="-1"])'),
].filter((node) => !node.hasAttribute('disabled') && node.getClientRects().length > 0);
...root.querySelectorAll(
'button, input, [href], [tabindex]:not([tabindex="-1"])',
),
].filter(
(node) =>
!node.hasAttribute('disabled') && node.getClientRects().length > 0,
);
if (!order.length) return;
const first = order[0];
const last = order[order.length - 1];