From fde1a2237e89aabcd1bda0b1c59338deeecee7cb Mon Sep 17 00:00:00 2001 From: Douwe de Vries Date: Sat, 14 Nov 2026 00:55:21 +0100 Subject: [PATCH] fix(ui): match the special-gun Continue focus to its button; v1.35.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/ui/ui.css | 7 +++++++ tests/e2e/shipSystems.spec.ts | 4 ++++ 4 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48da9ff..1dcc2c1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [1.35.1] - 2026-11-14 + +### Fixed + +- The SPECIAL GUNS ONLINE card's CONTINUE button no longer has an extra rectangular border. Its keyboard focus highlight now follows the button's angled shape. + ## [1.35.0] - 2026-11-14 ### Added diff --git a/package.json b/package.json index 2f34bfb..bc0e9d0 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "space-explorer", - "version": "1.35.0", + "version": "1.35.1", "author": "Douwe de Vries", "license": "MIT", "private": true, diff --git a/src/ui/ui.css b/src/ui/ui.css index 67abef4..17fef8e 100644 --- a/src/ui/ui.css +++ b/src/ui/ui.css @@ -2436,3 +2436,10 @@ .gun-intro .menu-sheet__done.ui-btn { --done-gap: 22px; } + +.gun-intro .menu-sheet__done.ui-btn:focus-visible { + outline: none; + --edge: #fff; + --fill: var(--c-cyan-bright); + --glow: drop-shadow(0 0 4px rgb(191 246 255 / calc(0.7 * var(--ui-glow)))); +} diff --git a/tests/e2e/shipSystems.spec.ts b/tests/e2e/shipSystems.spec.ts index 9525be4..c07be38 100644 --- a/tests/e2e/shipSystems.spec.ts +++ b/tests/e2e/shipSystems.spec.ts @@ -73,6 +73,10 @@ test('clearing sector 2 explains the special guns once, with nothing to pick; se await expect(card.getByRole('button')).toHaveCount(1); const done = card.getByRole('button', { name: 'CONTINUE' }); await expect(done).toBeFocused(); + await page.keyboard.press('Tab'); + await expect(done).toBeFocused(); + await expect(done).toHaveCSS('outline-style', 'none'); + await expect(done).toHaveCSS('--edge', '#fff'); await expect(card).toContainText('LANCE'); await expect(card).toContainText(isMobile ? 'Tap the swap key' : 'Press Q'); await expect(card).not.toContainText(isMobile ? 'Press Q' : 'Tap the swap key');