Skip to content

[UEPR-594] Focus outline#572

Open
kbangelov wants to merge 2 commits into
scratchfoundation:release/UEPR-297-accessibility-improvementsfrom
kbangelov:bugfix/uepr-594-focus-outline
Open

[UEPR-594] Focus outline#572
kbangelov wants to merge 2 commits into
scratchfoundation:release/UEPR-297-accessibility-improvementsfrom
kbangelov:bugfix/uepr-594-focus-outline

Conversation

@kbangelov
Copy link
Copy Markdown
Contributor

Resolves

To resolve https://scratchfoundation.atlassian.net/browse/UEPR-594 soon

Proposed Changes

  • Adds global black outline
  • Better styling for tabs outline

@kbangelov kbangelov requested a review from a team as a code owner May 15, 2026 14:22
@kbangelov kbangelov marked this pull request as draft May 15, 2026 14:22
@kbangelov kbangelov marked this pull request as ready for review May 18, 2026 07:16
@kbangelov kbangelov requested review from KManolov3 and adzhindzhi May 18, 2026 07:16
@KManolov3 KManolov3 requested a review from Copilot May 20, 2026 14:28
/* Focus outline for tabs */
.tab:focus-visible,
.tab.is-selected:focus-visible {
outline: 2px solid $ui-black;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be rem based?

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates Scratch GUI styling to improve focus visibility by standardizing focus outline color to black and refining tab focus/selection outline behavior (UEPR-594).

Changes:

  • Introduces an opaque $ui-black color token for consistent black usage.
  • Applies a global :focus-visible outline color of $ui-black.
  • Updates tab styling to suppress react-tabs pseudo-element styling and adds a clearer keyboard-focus outline for tabs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/scratch-gui/src/css/colors.css Adds $ui-black color token for reuse across GUI styles.
packages/scratch-gui/src/components/gui/gui.css Sets global focus-visible outline color and improves tab focus-visible outline styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants