Skip to content

Commit

Permalink
Updated the placeholder color (inverse to the search icon color)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaydek Michels-Gualtieri committed Apr 3, 2020
1 parent b394822 commit f274d99
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 36 deletions.
5 changes: 2 additions & 3 deletions src/App/SearchBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,12 @@ const SearchBar = ({ query, setQuery, solid, setSolid, ...props }) => {
<div className="relative flex flex-row justify-between h-16 text-xl">

{/* Start */}
<div ref={lhs} className="px-6 flex flex-row items-center rounded-l-lg-xl focus:outline-none z-10 pointer-events-none">
<Hero.SearchOutlineMd className="-mr-2 w-6 h-6 text-gray-400 dark:text-gray-600 transition duration-150" />
<div ref={lhs} className="-mx-2 px-6 pr-2 flex flex-row items-center rounded-l-lg-xl focus:outline-none z-10 pointer-events-none">
<Hero.SearchOutlineMd className="mx-2 w-6 h-6 text-gray-400 dark:text-gray-600 transition duration-150" />
</div>

{/* Search bar */}
<div className="absolute inset-0">
{/* Layered box-shadow for dark mode */}
<div className="h-full rounded-lg-xl dark:shadow-md transition duration-150">
<input
ref={ref}
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ReactDOM from "react-dom"
import "__firebase"

import "debug.css"
import "stylesheets/reset-input.css"
import "stylesheets/tailwind.generated.css"
import "stylesheets/index.css"

ReactDOM.render(<App />, document.getElementById("root"))
6 changes: 6 additions & 0 deletions src/stylesheets/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
input::placeholder {
color: #718096;
}
.dark-mode input::placeholder {
color: #cbd5e0;
}
32 changes: 0 additions & 32 deletions src/stylesheets/reset-input.css

This file was deleted.

0 comments on commit f274d99

Please sign in to comment.