outline for tabbed add as text/user buttons

This commit is contained in:
DoubleCookies
2022-09-14 15:19:10 +03:00
parent cf9df3b28c
commit 39dfa8eeae
2 changed files with 11 additions and 0 deletions

View File

@@ -4,6 +4,7 @@ import {
type LoaderArgs,
json,
redirect,
LinksFunction
} from "@remix-run/node";
import { Form, useLoaderData } from "@remix-run/react";
import { z } from "zod";
@@ -29,6 +30,11 @@ import { FormErrors } from "~/components/FormErrors";
import type { Unpacked } from "~/utils/types";
import { calendarEventPage } from "~/utils/urls";
import { useTranslation } from "react-i18next";
import styles from "~/styles/calendar-event.css";
export const links: LinksFunction = () => {
return [{ rel: "stylesheet", href: styles }];
};
const playersSchema = z
.array(
@@ -402,6 +408,7 @@ function Players({
variant="minimal"
onClick={() => handlePlayerInputTypeChange(i)}
data-cy="change-input-type-button"
className={"user-type-button"}
>
{asPlainInput
? t("forms.team.player.addAsUser")

View File

@@ -44,3 +44,7 @@
color: var(--text-lighter);
font-size: var(--fonts-xs);
}
.user-type-button:focus {
outline: 2px solid var(--theme);
}