Repository navigation
Keep the carousel flipper's background on focus and hover when its background option is undefined - #6085
Open
Eugene (OEvgeny) wants to merge 2 commits into
Open
Keep the carousel flipper's background on focus and hover when its background option is undefined#6085Eugene (OEvgeny) wants to merge 2 commits into
Eugene (OEvgeny) wants to merge 2 commits into
Conversation
added 2 commits
November 24, 2026 07:22
…nd is undefined An explicitly undefined `transcriptOverlayButtonBackgroundOnFocus` or `transcriptOverlayButtonBackgroundOnHover` made the focused or hovered flipper transparent since the move to CSS Modules. The flipper now falls back to `transcriptOverlayButtonBackground`, as the scroll to end button does.
Eugene (OEvgeny)
marked this pull request as ready for review
November 24, 2026 15:56
Eugene (OEvgeny)
requested review from
William Wong (compulim),
Chris Whitten (cwhitten) and
Thomas Durnford (tdurnford)
as code owners
November 24, 2026 15:56
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
The carousel flipper background fallback change has no active review issues.
No open issues 🎉
What changed in this PR
Restores the carousel flippers’ base background on focus and hover when the corresponding style option is explicitly undefined, fixing a regression from the CSS Modules conversion.
Changes:
- Adds base-background fallbacks to the flippers’ focus and hover rules.
- Adds a visual regression test for keyboard focus and pointer hover.
- Records the fix in the changelog.
| File | Description |
|---|---|
packages/component/src/Activity/CarouselLayout.module.css |
Falls back to the base background on focus and hover. |
.changelog/6085-fix-flipper-hover-background.md |
Documents the transparency fix. |
__tests__/html2/carousel/flipperButton.undefinedBackground.html |
Adds snapshots covering undefined focus and hover backgrounds. |
Review effort: Balanced
This branch has not been 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.
Changelog Entry
Fixed
undefinedbackground option, in PR #6085, by @OEvgenyDescription
Since #5668, the flipper's focus and hover rules read their custom property without a fallback, so an undefined option made the background transparent, where the previous style set kept the base background. They now fall back to
transcriptOverlayButtonBackground, as the scroll to end button does.Design
unsetthere to fall back to its hover background.:focus:hoverrule as in the scroll to end button: flippers blur on click, so they are rarely focused and hovered at once.Specific Changes
CarouselLayout.module.css: fall back to the base background in the focus and hover rulescarousel/flipperButton.undefinedBackground.html: snapshots 1–2, the focused and the hovered "Next" flipper keep their navy base background (onmain: transparent, the arrow over the card).changelog/<PR#>-<slug>.mdReview Checklist
z-index)package.jsonandpackage-lock.jsonreviewed