fix: Formatted network request payload has weird formatting#8603
Merged
Vadman97 merged 2 commits intohighlight:mainfrom May 17, 2024
Merged
fix: Formatted network request payload has weird formatting#8603Vadman97 merged 2 commits intohighlight:mainfrom
Vadman97 merged 2 commits intohighlight:mainfrom
Conversation
|
There was a problem hiding this comment.
Pull Request Summary
- Resolved Class Name Conflict: Addressed a class name conflict between
react-command-paletteandreact-syntax-highlighterby overriding theatom-inputclass styles with higher specificity infrontend/src/index.css.
Potential Pitfalls
- Global CSS Overrides: Ensure that the global CSS overrides do not unintentionally affect other components or styles within the application.
Vadman97
approved these changes
May 17, 2024
Member
Vadman97
left a comment
There was a problem hiding this comment.
awesome, this fixes the issue for a session that currently displays this behavior. https://app.highlight.io/1/sessions/vRDmvFdZpssWFOwu1NCGPN03oTI1?network-resource-id=341
thank you for your contribution!
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.

fixes #8560
/claim #8560
Summary
There was a class name conflict between two third party components
The react-command-pallete library comes with a default theme called "atom" that has a declaration for "atom-input"
This theme is imported whenever the react-command-pallete is used and was thus globally available.
Our graphql variable "Type" also has the class name atom-input and therefore inherits the global styling for the default
atom theme from the react-command-pallete component.
My proposed solution just overrides those styles by introducing a global declaration with higher specificity that
unsets the css declaration. I';ve seen similar done for the atom-overlay class.
Default atom style from the command-pallete library.
This is imported as a global css by the library.

Fixed output
How did you test this change?
Click testing
Are there any deployment considerations?
No
Does this work require review from our design team?
No