-
Notifications
You must be signed in to change notification settings - Fork 97
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 input search placeholder style #287
base: main
Are you sure you want to change the base?
Conversation
@@ -257,9 +257,14 @@ li.folder > ul > li.file { | |||
.sidebar .search input[type="search"], | |||
.sidebar .search input[type="search"]:focus { | |||
background-color: #2d1763; | |||
background-image: url("data:image/svg+xml,%3Csvg height='20px' width='20px' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' preserveAspectRatio='xMidYMid meet' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5' vector-effect='non-scaling-stroke'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='15.8' y2='15.8' vector-effect='non-scaling-stroke'%3E%3C/line%3E%3C/svg%3E"); |
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.
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.
thank you for reviewing,
Thanks for your contribution. Could you describe what issue are you fixing?
I was trying to fix the placeholder and icon within the search input, because it is blurred, not contrast with the background (hard to see).
Are you trying to override the SVG from
plugin-search
?
ohh, is that cause by the plugin? I don't know about that
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.
+1 to rahul's question. The current search bar looks good to me, not sure what the issue. Can you please send a screenshot and describe it?
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.
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.
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.
Interesting, this is how ti renders for me:
Can you report what browser/OS are you using? Are you sure it's not caused by extension or some settings?
Across all my browsers and devices, both search bar placeholder and block of code are readable. But I agree it should be more explicit in css to avoid breaking in some browsers
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.
yeah, it's working fine in dark theme. I use Brave browser on MacOS computer
Wiki PR Checklist
Thank you for contributing to the Protocol Wiki! Before you open a PR, make sure to read information for contributors and take a look at following checklist: