Repository navigation
Conversation
…ding them The button changes its look at once, but the nested Checkbox and Radio fade their indicator over 200ms, so it lags behind the button. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
langz
commented
Nov 24, 2026
langz
left a comment
Member
Author
There was a problem hiding this comment.
Final review of ae19b03: no critical findings.
- Adjusted in this round: removed the e2e test. The PR now changes
dnb-toggle-button.scssand its CSS snapshot, which differs only by the twotransition: nonedeclarations. - Verified with the published package instead of the Portal. A standalone Vite + React app installed the npm release (11.18.1), the
mainbuild (9365a68) and this PR's build from pkg.pr.new (a2cdbf7, same CSS as this commit). It clicked ToggleButton groups with the checkbox and radio variants in Chromium, Firefox and WebKit, with four ways of loading the styles: all-in-one, isolated style scope, per-component imports with Checkbox and Radio last, and the Sbanken theme.- In the release and on
main, the checkmark and radio dot fade. - With this PR, they don't fade, in every engine and style setup. Standalone Checkbox and Radio still fade, and chips still fade until #11050.
- Once the selection has settled, every page is pixel-identical to
main.
- In the release and on
- The rules ship in
dnb-toggle-button.css, the components bundle and every theme bundle, in both the plain and the isolated variant, and outrank the Checkbox and Radio transitions in all of them. - CI for this commit was still running when this review was posted.
Member
Author
|
@joakbjerk Thanks! #11053 also updates |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With
variant="checkbox"orvariant="radio", the button changes its background and border at once, but the checkmark or radio dot inside it fades in or out over 200ms. The indicator visibly lags behind the button.ToggleButton already turned off the transition on the nested checkbox box. It now does the same for the checkmark and the radio dot, so they switch together with the button. Standalone Checkbox and Radio keep their animation.
Before / after
Each row shows the buttons the given time after they were selected.
Chip had the same issue and is fixed in #11050.