Skip to content

Conversation

@svanherk
Copy link
Contributor

@svanherk svanherk commented Jan 30, 2026

Chrome 144 has changed the behaviour of outline-width:

Previously in most (but maybe not all) cases we skipped drawing outline-style:auto outlines that have a width of 0. However, outline-style: auto is intended to override outline widths, including zero widths. This changes our behavior to follow the spec and match Gecko and WebKit.

That's resulting in these vdiffs. I've confirmed that Safari and Firefox are currently broken (and probably have been for quite a while), but we don't run vdiff in those. They don't look as obviously broken as Chrome does now.

Chrome 144+:
image

Firefox (Currently):
image

Safari (Currently):
image

We're not planning to backport this - it'll only affect users of the core SASS. And I can't even find a usage in the LMS, because of the reset.css also turning outline off.

@github-actions
Copy link
Contributor

Thanks for the PR! 🎉

We've deployed an automatic preview for this PR - you can see your changes here:

URL https://live.d2l.dev/prs/BrightspaceUI/core/pr-6541/

Note

The build needs to finish before your changes are deployed.
Changes to the PR will automatically update the instance.

@svanherk svanherk marked this pull request as ready for review January 30, 2026 16:54
@svanherk svanherk requested a review from a team as a code owner January 30, 2026 16:54
border-width: 2px;
outline-style: none; /* Safari */
outline-width: 0;
outline: none;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Only checkbox.scss and radio.scss above are broken, but I figured I'd update all the inputs to be consistent. We can either go with what I have here (outline: none;) or keep outline-style: none; and outline-width: 0; and switch radio and checkbox to that.

Any preference? I went with outline: none; because it's shorthand for those and simpler.

display: inline-block;
height: ${cssSizes.inputBoxSize}rem;
margin: 0;
outline: none;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file wasn't broken, but switching it to match what the others do. I was the one who originally added this fix here for Firefox.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated this to verify it fixes the vdiffs. I'll likely revert this piece before merging and have update-package-lock handle it.

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.

2 participants