-
Notifications
You must be signed in to change notification settings - Fork 122
fix(web) lynx-view display flex important #1997
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| --- | ||
| "@lynx-js/web-core": patch | ||
| --- | ||
|
|
||
| fix: lynx-view display flex add !important | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,7 +6,7 @@ | |
|
|
||
| lynx-view { | ||
| contain: strict; | ||
| display: flex; | ||
| display: flex !important; | ||
| } | ||
|
|
||
| lynx-view[width="auto"] { | ||
|
|
||
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 1711
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 455
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 2463
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 1216
🏁 Script executed:
# Find the actual change in the changeset cat .changeset/hungry-things-cover.mdRepository: lynx-family/lynx-stack
Length of output: 144
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 282
🏁 Script executed:
# Get the full content of web-core/index.css to see the current state cat packages/web-platform/web-core/index.cssRepository: lynx-family/lynx-stack
Length of output: 584
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 2728
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 48
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 1368
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 332
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 892
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 872
🏁 Script executed:
# Look at the exact commit that added !important git show 595bd574 --statRepository: lynx-family/lynx-stack
Length of output: 50379
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 68
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 713
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 120
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 316
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 1853
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 10950
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 48
🏁 Script executed:
Repository: lynx-family/lynx-stack
Length of output: 48
Changelog entry is appropriate; this is a regression fix following established framework patterns.
The
!importantusage ondisplay: flexfor lynx-view is consistent with established framework practice—scroll-view, x-text, and other components already use!importanton display rules to enforce layout constraints. This change fixes a regression where CSS was being lost on reload (related to PR #1982), rather than introducing a new restriction.The patch version is correct for a regression fix. Users who need to override the display property can use standard CSS escalation (including
!importantthemselves), just as they would with other framework constraints like Bootstrap or Tailwind.🤖 Prompt for AI Agents