Repository navigation
Conversation
…lass Since the CSS Modules migration the .active selector is hashed, so a consumer's plain active class no longer keeps an open Flyout expanded under 1024px. Match it with :global(.active) like before 0.7.0. Fixes ClickHouse#1341
4 tasks done
🦋 Changeset detectedLatest commit: 2e7b4ab The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
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.
Description
Under 1024px an open
Flyout.Contentslides in until only 50px show, and expands on hover or focus inside. Up to 0.6.1 you could keep it expanded by passingclassName="active". Since the CSS Modules migration (#1104) the.activeselector gets hashed, so a plainactiveclass from the consumer matches nothing and the Flyout stays a 50px strip on touch screens.:global(.active)for bothalign="start"andalign="end", same as before 0.7.0activeclassLinks and tickets
Fixes #1341
Good to know
:global, so both lines have astylelint-disable-next-linewith a reason.data-state="open", but the content is only mounted while open, so that would drop the 50px collapse entirely. Happy to switch if that's the preferred direction.Checklist
Contribution
buildandbuild-storybookwork locallyAccessibility
activeis setScreenshots
At 390px with
activeon the content: before, only the 50px strip shows; after, the full Flyout shows. The new test intests/display/flyout.spec.tschecks the content position before and after adding the class.Tested: the new test fails on main and passes with the fix;
yarn typecheck,lint,format,circular-dependency:check,test,buildandstorybook:buildpass. I didn't run the Docker screenshot specs locally; they use a 1280px viewport where this rule doesn't apply.Note
Low Risk
Narrow CSS selector fix in a responsive media query plus a regression test; no API or auth/data impact.
Overview
Restores pre–0.7.0 behavior where
Flyout.Contentstays fully visible below 1024px when consumers add a plainactiveclass, instead of collapsing to the 50px peek strip until hover or focus.After the CSS Modules migration, scoped selectors stopped matching consumer
className="active". The small-screen expand rules now use:global(.active)for bothalign="start"andalign="end", with stylelint disables for that pseudo.A Playwright case at 390px asserts the dialog sits off-screen when collapsed and snaps to x = 0 after
activeis applied. A patch changeset documents the visual fix (Fixes #1341).Reviewed by Cursor Bugbot for commit 2e7b4ab. Bugbot is set up for automated code reviews on this repo. Configure here.