diff --git a/src/components/buttons/Toggle.tsx b/src/components/buttons/Toggle.tsx index 7f477056..cdca03d6 100644 --- a/src/components/buttons/Toggle.tsx +++ b/src/components/buttons/Toggle.tsx @@ -6,7 +6,7 @@ export function Toggle(props: { onClick: () => void; enabled?: boolean }) { type="button" onClick={props.onClick} className={classNames( - "w-11 h-6 p-1 rounded-full grid transition-colors duration-100 group/toggle", + "w-11 h-6 p-1 rounded-full grid transition-colors duration-100 group/toggle tabbable", props.enabled ? "bg-buttons-toggle" : "bg-buttons-toggleDisabled" )} > diff --git a/src/components/media/MediaCard.tsx b/src/components/media/MediaCard.tsx index 6c11eb44..1277abf8 100644 --- a/src/components/media/MediaCard.tsx +++ b/src/components/media/MediaCard.tsx @@ -1,4 +1,4 @@ -import c from "classnames"; +import classNames from "classnames"; import { useTranslation } from "react-i18next"; import { Link } from "react-router-dom"; @@ -50,7 +50,7 @@ function MediaCardContent({ flareSize={300} cssColorVar="--colors-mediaCard-hoverAccent" backgroundClass="bg-mediaCard-hoverBackground duration-100" - className={c({ + className={classNames({ "rounded-xl bg-background-main group-hover:opacity-100": canLink, })} /> @@ -155,7 +155,13 @@ export function MediaCard(props: MediaCardProps) { if (!props.linkable) return {content}; return ( - + {content} ); diff --git a/src/components/player/atoms/settings/CaptionSettingsView.tsx b/src/components/player/atoms/settings/CaptionSettingsView.tsx index bb29f329..10d2792a 100644 --- a/src/components/player/atoms/settings/CaptionSettingsView.tsx +++ b/src/components/player/atoms/settings/CaptionSettingsView.tsx @@ -14,9 +14,10 @@ export function ColorOption(props: { onClick: () => void; }) { return ( -
) : null} - + ); } @@ -77,11 +78,11 @@ export function CaptionSetting(props: { }; }, [isFocused]); - const inputClasses = `py-1 bg-video-context-inputBg rounded text-white cursor-text ${ + const inputClasses = `tabbable py-1 bg-video-context-inputBg rounded text-white cursor-text ${ props.controlButtons ? "text-center px-4 w-24" : "px-3 text-left w-20" }`; const arrowButtonClasses = - "hover:text-white transition-colors duration-100 w-full h-full flex justify-center items-center hover:bg-video-context-buttonOverInputHover rounded"; + "tabbable hover:text-white transition-colors duration-100 w-full h-full flex justify-center items-center hover:bg-video-context-buttonOverInputHover rounded"; const textTransformer = props.textTransformer ?? ((s) => s); return ( diff --git a/src/components/player/atoms/settings/CaptionsView.tsx b/src/components/player/atoms/settings/CaptionsView.tsx index aab0d20c..efc51af5 100644 --- a/src/components/player/atoms/settings/CaptionsView.tsx +++ b/src/components/player/atoms/settings/CaptionsView.tsx @@ -153,6 +153,7 @@ export function CaptionsView({ id }: { id: string }) { diff --git a/src/components/player/atoms/settings/PlaybackSettingsView.tsx b/src/components/player/atoms/settings/PlaybackSettingsView.tsx index 4491ca0b..c71c5627 100644 --- a/src/components/player/atoms/settings/PlaybackSettingsView.tsx +++ b/src/components/player/atoms/settings/PlaybackSettingsView.tsx @@ -17,7 +17,7 @@ function ButtonList(props: { ); } diff --git a/src/components/player/internals/Button.tsx b/src/components/player/internals/Button.tsx index 7421662d..16ddda0b 100644 --- a/src/components/player/internals/Button.tsx +++ b/src/components/player/internals/Button.tsx @@ -22,7 +22,7 @@ export const VideoPlayerButton = forwardRef< type="button" onClick={(e) => props.onClick?.(e.currentTarget as HTMLButtonElement)} className={classNames([ - "p-2 rounded-full hover:bg-video-buttonBackground hover:bg-opacity-50 transition-transform duration-100 flex items-center", + "tabbable p-2 rounded-full hover:bg-video-buttonBackground hover:bg-opacity-50 transition-transform duration-100 flex items-center", props.activeClass ?? "active:scale-110 active:bg-opacity-75 active:text-white", props.className ?? "", diff --git a/src/components/player/internals/ContextMenu/Input.tsx b/src/components/player/internals/ContextMenu/Input.tsx index 79023f88..2428e715 100644 --- a/src/components/player/internals/ContextMenu/Input.tsx +++ b/src/components/player/internals/ContextMenu/Input.tsx @@ -12,7 +12,7 @@ export function Input(props: { /> props.onInput(e.currentTarget.value)} /> diff --git a/src/components/player/internals/ContextMenu/Links.tsx b/src/components/player/internals/ContextMenu/Links.tsx index d28817f9..616647a9 100644 --- a/src/components/player/internals/ContextMenu/Links.tsx +++ b/src/components/player/internals/ContextMenu/Links.tsx @@ -39,7 +39,7 @@ export function BackLink(props: {