Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outline: 0 from modals #41269

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Remove outline: 0 from modals #41269

wants to merge 1 commit into from

Conversation

coliff
Copy link
Contributor

@coliff coliff commented Mar 5, 2025

Description

This was added about 12 years ago and is no longer needed from what I can tell.

I've tested with Chrome 133 and Edge 122 on Windows 11. The modal itself is never focused anyway, when the modal opens the focus is only within the modal.

Motivation & Context

No longer needed. Removing it saves a few bytes. :-)

Type of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Refactoring (non-breaking change)
  • Breaking change (fix or feature that would change existing functionality)

Checklist

  • I have read the contributing guidelines
  • My code follows the code style of the project (using npm run lint)
  • My change introduces changes to the documentation
  • I have updated the documentation accordingly
  • I have added tests to cover my changes
  • All new and existing tests passed

Live previews

Related issues

This was [added about 12 years ago](twbs#10951) and is no longer needed from what I can tell.

I've tested with Chrome 133 and Edge 122 on Windows 11. The modal itself is never focused anyway, when the modal opens the focus is only within the modal.
@coliff coliff requested a review from a team as a code owner March 5, 2025 12:30
@julien-deramond
Copy link
Member

julien-deramond commented Mar 5, 2025

Thanks for this patch. Unfortunately, I don't have access anymore to BrowserStack (or any equivalent tool) to try to render the thing with Chrome 60 on Windows (based on the rules of our current .browserslistrc. The safest option would maybe be to merge this PR in v6 where we'll use less restrictive rules in the .browserslistrc file.

@coliff
Copy link
Contributor Author

coliff commented Mar 6, 2025

thanks! I have a BrowserStack subscription and just tested this with Chrome 60 on Windows 10 and it does indeed still have an unwanted blue outline without the outline: 0

image

Production version (with the outline: 0) doesn't have this issue:
image

So you're quite right, it should be parked until v6. 👍

@julien-deramond
Copy link
Member

Thanks a lot for providing the rendering with Chrome 60 on Windows 10 🙌
@mdo That's something you could introduce in your current work in the v6-dev branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Inbox
Development

Successfully merging this pull request may close these issues.

2 participants