Skip to content

Conversation

@Welander1994
Copy link
Contributor

Description

Changes the CSS rule for the focus state, so all elements use the same rule
It also add a tiny bit of margin to button, to ensure that it focus style does not get cut off

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (minor updates related to the tooling or maintenance of the repository, does not impact compiled assets)

Motivation and context

This is to ensure consistent identification for accessibility

How to test?

Screenshots (if appropriate)

Checklist

  • If my change requires a change to the documentation, I have updated the documentation in this pull request.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.

…n, to ensure that the bottom styling does not get cut of when in focus
@leekelleher leekelleher self-requested a review November 5, 2025 09:59
@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1218.westeurope.azurestaticapps.net

As `--color-emphasis` is generally used as an override,
whereas `--uui-color-focus` will always have a value,
so it wouldn't need a fallback.
Removing this would be a breaking-change, as it is documented
and we use it in Umbraco CMS backoffice.

I have also changed the fallback order, so that
`--color-emphasis` comes before `--uui-color-focus`.
@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2025

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-beach-055ecb503-1218.westeurope.azurestaticapps.net

Copy link
Member

@leekelleher leekelleher left a comment

Choose a reason for hiding this comment

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

Tested out, all good! 🙌

I made a few tweaks around the usage of the --color-emphasis variable, as it is generally used as an override rather than a fallback. In most cases --uui-color-focus will have a value, so it would rarely use the fallback (which most likely be undefined).

Also I reverted the removal of --uui-focus-outline-color from uui-button, as that would be a breaking-change.

All good progress though! Thanks @Welander1994! 🚀

@leekelleher leekelleher added the accessibility A11Y improvements label Nov 5, 2025
@leekelleher leekelleher enabled auto-merge November 5, 2025 18:25
@leekelleher leekelleher changed the title Align focus Align focus ring color across components Nov 5, 2025
@leekelleher leekelleher merged commit 16cbc25 into main Nov 5, 2025
11 of 12 checks passed
@leekelleher leekelleher deleted the alignFocus branch November 5, 2025 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

accessibility A11Y improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants