-
Notifications
You must be signed in to change notification settings - Fork 0
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
Deal with overlapping of delete button with search button #41213 #3
Deal with overlapping of delete button with search button #41213 #3
Conversation
Change padding to em units instead of px so it scales with size instead of constant units
…n-with-search-button
…n-with-search-button
…n-with-search-button
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.
The code style is followed the style guide. Might be worth to check if using em units instead of px is consistent with the rest of the codebase and project standards.
@@ -28,7 +28,8 @@ | |||
display: flex; | |||
justify-content: center; | |||
margin: 0; | |||
padding: 6px 0; | |||
padding-right:1em; |
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.
It is good to change padding from fixed pixel values to relative values. This change makes the layout more responsive.
@@ -1,7 +1,7 @@ | |||
<style> | |||
:host { | |||
--search-icon-size: 20px; | |||
--search-padding: 16px; | |||
--search-padding: 0.5em; | |||
--search-icon-padding: 4px; | |||
--search-button-width: calc(var(--search-icon-size) + 2 * var(--search-padding) + 2 * var(--search-icon-padding)); | |||
position: absolute; |
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.
Might worth consider to test, absolute positioning can sometimes lead to layout issues if not managed properly with respect to parent elements.
Resolves Overlapping of Delete button with Search icon #41213 by adding padding. Issue was fixed by adding padding to the delete button to prevent this from happening. Additional padding was also added to the navigation bar and search tool icon as at small resolutions some of these icons also overlapped which made some elements inaccessible.
Ensure that when pushing to the actual brave core we attempt to use github auto-closing keywords
Submitter Checklist:
QA/Yes
orQA/No
;release-notes/include
orrelease-notes/exclude
;OS/...
) to the associated issuenpm run test -- brave_browser_tests
,npm run test -- brave_unit_tests
wikinpm run presubmit
wiki,npm run gn_check
,npm run tslint
git rebase master
(if needed)Reviewer Checklist:
gn
After-merge Checklist:
changes has landed on