fix(ui): scope resource card keys and env count hide

Limit enter/space deploy handlers to the card root with .self so nested focusable content no longer triggers deploy. Hide the environments table resource count on mobile via a stable class instead of nth-child.
This commit is contained in:
Andras Bacsai committed 2026-08-12 23:57:32 +02:00
1 parent 1f550e8fcf
commit 37ed725dc1
5 files changed
+34 -11

No files matched your search

@@ -0,0 +1,10 @@
<?php
it('only deploys from keyboard events on the resource card itself', function () {
$view = file_get_contents(resource_path('views/livewire/project/new/select.blade.php'));
expect(substr_count($view, '@keydown.enter.self.prevent='))->toBe(4)
->and(substr_count($view, '@keydown.space.self.prevent='))->toBe(4)
->and($view)->not->toContain('@keydown.enter.prevent=')
->and($view)->not->toContain('@keydown.space.prevent=');
});