-
Notifications
You must be signed in to change notification settings - Fork 232
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
(Fix) UI Issue with Jumbled Search Results when PatientSearchBar Component is used in a workspace #1257
Conversation
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.
Hi @amosmachora!
Please follow the PR conventions and mention the ticket in the PR title to move ahead.
Thanks!
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.
Hi @amosmachora!
Please follow the PR conventions and mention the ticket in the PR title to move ahead.
Thanks!
Also, the compact patient search is not meant to be used at any other place than the search bar itself. |
Isn't this what you ought to fix? Because the styles are not scoped under a class name, they'll apply globally to all instances of the See https://o3-docs.openmrs.org/docs/coding-conventions#styling for inspiration. |
You are right I should avoid overriding the original rule. I fear I might break other places where the component is used but let me test to see if we can achieve the same functionality. |
Could you post an updated screenshot, @amosmachora? |
Here is a screenshot. Scoping this class to only apply to the Do not worry of the rendering twice of the extensions. I think that is a local issue because I am running two apps simultaneously. |
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.
Thanks @amosmachora !
Requirements
Summary
In this PR I have fixed a small UI issue that showed jumbled search results whever the
PatientSearchBar
component is used in small windows for lack of a better term i.e workspaces.The issue was that there is an element that hard coded this style
so the above css rule forced the button to a height of
3rem
thereby throwing the UI into a complete catastrophe. Fixed it by adding a new rule withheight: auto
that overrides the original rule. Please check the attached screenshots.Screenshots
Before
After
Related Issue
Other