forked from github/plane
fix: UI improvements. (#2734)
* style: update check icon colors to match our design. * fix: automatically focus input box in pages `add label` modal.
This commit is contained in:
parent
8832d8e00e
commit
7676aab773
@ -112,7 +112,7 @@ export const SingleIntegrationCard: React.FC<Props> = observer(({ integration })
|
|||||||
<h3 className="flex items-center gap-2 text-sm font-medium">
|
<h3 className="flex items-center gap-2 text-sm font-medium">
|
||||||
{integration.title}
|
{integration.title}
|
||||||
{workspaceIntegrations
|
{workspaceIntegrations
|
||||||
? isInstalled && <CheckCircle className="h-3.5 w-3.5 text-white fill-green-500" />
|
? isInstalled && <CheckCircle className="h-3.5 w-3.5 text-green-500 fill-transparent" />
|
||||||
: null}
|
: null}
|
||||||
</h3>
|
</h3>
|
||||||
<p className="text-sm text-custom-text-200 tracking-tight">
|
<p className="text-sm text-custom-text-200 tracking-tight">
|
||||||
|
@ -46,10 +46,18 @@ export const CreateLabelModal: React.FC<Props> = observer((props) => {
|
|||||||
control,
|
control,
|
||||||
reset,
|
reset,
|
||||||
setValue,
|
setValue,
|
||||||
|
setFocus,
|
||||||
} = useForm<IIssueLabels>({
|
} = useForm<IIssueLabels>({
|
||||||
defaultValues,
|
defaultValues,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
/**
|
||||||
|
* For setting focus on name input
|
||||||
|
*/
|
||||||
|
useEffect(() => {
|
||||||
|
setFocus("name");
|
||||||
|
}, [setFocus, isOpen]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isOpen) setValue("color", getRandomLabelColor());
|
if (isOpen) setValue("color", getRandomLabelColor());
|
||||||
}, [setValue, isOpen]);
|
}, [setValue, isOpen]);
|
||||||
|
Loading…
Reference in New Issue
Block a user