Browse Source

Merge pull request #762 from robertsspaceindustries/dev

Fix buttons still having the `cursor: pointer` property when disabled
pull/763/head
mrjvs 2 years ago committed by GitHub
parent
commit
869e0713c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/buttons/Button.tsx
  2. 1
      src/pages/parts/auth/AccountCreatePart.tsx

2
src/components/buttons/Button.tsx

@ -41,7 +41,7 @@ export function Button(props: Props) { @@ -41,7 +41,7 @@ export function Button(props: Props) {
props.padding ?? "px-4 py-3",
props.className,
colorClasses,
props.disabled ? "cursor-not-allowed bg-opacity-60 text-opacity-60" : null,
props.disabled ? "!cursor-not-allowed bg-opacity-60 text-opacity-60" : null,
);
if (props.disabled)

1
src/pages/parts/auth/AccountCreatePart.tsx

@ -5,7 +5,6 @@ import { Avatar } from "@/components/Avatar"; @@ -5,7 +5,6 @@ import { Avatar } from "@/components/Avatar";
import { Button } from "@/components/buttons/Button";
import { ColorPicker, initialColor } from "@/components/form/ColorPicker";
import { IconPicker, initialIcon } from "@/components/form/IconPicker";
import { Icon, Icons } from "@/components/Icon";
import {
LargeCard,
LargeCardButtons,

Loading…
Cancel
Save