www: update button color in counter example
This commit is contained in:
@@ -7,7 +7,7 @@ export function RoundedButton(props: h.JSX.HTMLAttributes<HTMLButtonElement>) {
|
||||
<button
|
||||
{...props}
|
||||
class={tw
|
||||
`p-3 border border-transparent rounded-full text-white bg-indigo(600 hover:700) focus:(outline-none ring(2 offset-2 indigo-500)) disabled:(bg-indigo-200 cursor-default)`}
|
||||
`p-3 border border-transparent rounded-full text-white bg-green(500 hover:600) focus:(outline-none ring(2 offset-2 green-500)) disabled:(bg-green-200 cursor-default)`}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export default function Counter(props: CounterProps) {
|
||||
<RoundedButton
|
||||
title="Subtract 1"
|
||||
onClick={() => setCount(count - 1)}
|
||||
disabled={!IS_BROWSER}
|
||||
disabled={!IS_BROWSER || count <= 0}
|
||||
>
|
||||
<IconMinus />
|
||||
</RoundedButton>
|
||||
|
||||
Reference in New Issue
Block a user