Skip to content

Commit

Permalink
add active state for input / buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ismarjiw committed Oct 6, 2023
1 parent b26e314 commit 9b6df8a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/views/AddItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function AddItem({ listId, data }) {
className="text-gray-500 mr-2 sm:mr-4"
/>
<input
className="flex-grow border-none outline-none bg-transparent"
className="flex-grow border-none bg-transparent placeholder-light dark:placeholder-dark"
type="text"
id="item"
name="item"
Expand Down Expand Up @@ -178,7 +178,7 @@ export function AddItem({ listId, data }) {
text="ADD ITEM"
withIcon={true}
onClick={handleSubmit}
className="mb-5"
className="mb-5 border-2 focus:border-mx-auto focus:-rotate-90 focus:sm:rotate-0 focus:border-blue-600"
/>
</form>
</div>
Expand Down
9 changes: 6 additions & 3 deletions src/views/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,17 @@ export function Home({ createToken, setListToken }) {
<label htmlFor="tokenInput" className="px-3 mt-2">
Enter existing list token:
</label>
<div className="w-full sm:w-1/2 flex items-center border-2 rounded-lg py-2 px-3 sm:px-5">
<div
className="w-full sm:w-1/2 flex items-center border-2 rounded-lg py-2 px-3 sm:px-5
active:border-mx-auto active:-rotate-90 active:sm:rotate-0 active:border-blue-600"
>
<FontAwesomeIcon
icon={key}
title="Enter item name"
className="text-gray-500 mr-2 sm:mr-4"
/>
<input
className="flex-grow border-none outline-none bg-transparent"
className="flex-grow border-none bg-transparent placeholder-light dark:placeholder-dark"
type="text"
id="tokenInput"
value={tokenInput}
Expand All @@ -120,7 +123,7 @@ export function Home({ createToken, setListToken }) {
<Button
onClick={(e) => handleCreateClick(e)}
text="CREATE LIST"
className="max-w-4xl"
className="max-w-4xl border-2 focus:border-mx-auto focus:-rotate-90 focus:sm:rotate-0 focus:border-blue-600"
/>
<button
type="submit"
Expand Down
2 changes: 1 addition & 1 deletion src/views/List.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function List({ data, listId }) {
className="text-gray-500 mr-2 sm:mr-4"
/>
<input
className="flex-grow border-none outline-none bg-transparent placeholder-light dark:placeholder-dark"
className="flex-grow border-none bg-transparent placeholder-light dark:placeholder-dark"
type="text"
name="filter"
id="filter"
Expand Down

0 comments on commit 9b6df8a

Please sign in to comment.