Skip to content

Commit 6368b8a

Browse files
committed
client(NumberInput.tsx): the buttons have no hover effect if they're not active
1 parent 1e08801 commit 6368b8a

File tree

11 files changed

+34
-24
lines changed

11 files changed

+34
-24
lines changed

client/build/asset-manifest.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/index.html

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/css/main.2dae603a.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

client/build/static/css/main.72cd8c70.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/css/main.2dae603a.css.map renamed to client/build/static/css/main.72cd8c70.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.c8612afc.js renamed to client/build/static/js/main.2929b3db.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/build/static/js/main.c8612afc.js.map renamed to client/build/static/js/main.2929b3db.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

client/public/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
content="Dynamically generated, customizable technologies cards for your GitHub README."
1010
/>
1111
<meta http-equiv="Cache-Control" content="no-store, no-cache" />
12+
<meta http-equiv="Pragma" content="no-cache" />
13+
<meta http-equiv="Expires" content="0" />
1214
<meta
1315
name="keywords"
1416
content="react, tailwind, tailwindcss, javascript, js,

client/src/components/input/NumberInput.tsx

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ const NumberInput: FC<InputProps> = (props) => {
4141
<button
4242
type="button"
4343
onClick={decrement}
44-
className="rounded-tl-md rounded-bl-md border border-solid text-gh-text-secondary
45-
border-gh-border px-2 transition-all duration-150 hover:bg-gh-red hover:text-white
46-
text-sm"
44+
className={`rounded-tl-md rounded-bl-md border border-solid text-gh-text-secondary
45+
border-gh-border px-2 transition-all duration-150 text-sm
46+
${
47+
props.value === `${props.minValue}`
48+
? "cursor-default text-gh-border"
49+
: "hover:bg-gh-red hover:text-white text-gh-text-secondary"
50+
}`}
4751
>
4852
<AiOutlineMinus />
4953
</button>
@@ -57,9 +61,13 @@ const NumberInput: FC<InputProps> = (props) => {
5761
<button
5862
type="button"
5963
onClick={increment}
60-
className="rounded-tr-md rounded-br-md border border-solid text-gh-text-secondary
61-
border-gh-border px-2 transition-all duration-150 hover:bg-gh-green-active
62-
hover:text-white text-sm"
64+
className={`rounded-tr-md rounded-br-md border border-solid
65+
border-gh-border px-2 transition-all duration-150 text-sm
66+
${
67+
props.value === `${props.maxValue}`
68+
? "cursor-default text-gh-border"
69+
: "hover:bg-gh-green-active hover:text-white text-gh-text-secondary"
70+
}`}
6371
>
6472
<AiOutlinePlus />
6573
</button>

0 commit comments

Comments
 (0)