Skip to content

fix(taskbar): show a dotted outline on focused buttons - #616

Merged
ggdaltoso merged 1 commit into
React95:masterfrom
Filipcardos:fix-taskbar-focus
Nov 19, 2026
Merged

ggdaltoso merged 1 commit into
React95:masterfrom
Filipcardos:fix-taskbar-focus

Conversation

@Filipcardos

Copy link
Copy Markdown
Contributor

TaskBar buttons now show the existing dotted outline whenever they receive focus, including Start before its menu is opened and the window buttons. The style uses :focus as requested. Fixes #615.

The Simple story checks focus, outline style and width on both Start and a window button.

Validation

  • Core Vite production build passes.
  • ESLint on the two changed files reports no errors and one existing non-null assertion warning.
  • The Storybook browser test could not run here. Chromium exits before loading the story because this environment blocks the Unix socket used by its process singleton. The browser assertions still need to run in CI.

Implementation and validation prepared with AI assistance.

@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@ggdaltoso

Copy link
Copy Markdown
Member

Thanks for this, @Filipcardos! I ran the story tests locally and they all pass. To check the new steps, I swapped :focus for :hover, and TaskBar › Simple failed on the Start outline, so they catch the bug.

I also compared it with Windows 95. The dotted rectangle sits inside the bevel like in the original, on Start and on the window buttons.

One small, optional change: the play functions here use jest-dom matchers where they can, so await expect(start).toHaveStyle({ outlineStyle: 'dotted', outlineWidth: '1px' }) would read a bit better than getComputedStyle(...). You can leave it as it is if you prefer.

@nx-cloud

nx-cloud Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit eb63e4c

Command Status Duration Result
nx affected -t lint,test,build,test-storybook,b... ✅ Succeeded 49s View ↗
nx-cloud record -- yarn nx format:check ✅ Succeeded 1s View ↗

💡 With Ultracache enabled, Nx Cloud learns each task's file inputs in CI and uses them on later runs. Turn on Ultracache in workspace settings ↗ · Read docs ↗


☁️ Nx Cloud last updated this comment at 2026-11-17 21:15:50 UTC

@ggdaltoso
ggdaltoso merged commit 1a2a58f into React95:master Nov 19, 2026
8 checks passed
@ggdaltoso

Copy link
Copy Markdown
Member

Merged, thanks @Filipcardos!

@all-contributors please add @Filipcardos for code, a11y

@allcontributors

Copy link
Copy Markdown
Contributor

@ggdaltoso

I've put up a pull request to add @Filipcardos! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TaskBar: buttons don't show keyboard focus

2 participants