diff --git a/front/packages/primitives/src/tooltip.tsx b/front/packages/primitives/src/tooltip.tsx index 74e2fb7e..34ca685b 100644 --- a/front/packages/primitives/src/tooltip.tsx +++ b/front/packages/primitives/src/tooltip.tsx @@ -60,10 +60,22 @@ export const WebTooltip = ({ theme }: { theme: Theme }) => { transition: opacity 0.3s ease-in-out; } - [data-tooltip]:hover::after { + :where(body:not(.noHover)) [data-tooltip]:hover::after, + [data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; } + + :focus:not(:focus-visible) { + outline: none; + } + + :focus-visible { + outline: none; + transition: box-shadow 0.15s ease-in-out; + box-shadow: 0 0 0 2px ${theme.colors.black}; + /* box-shadow: ${theme.accent} 1px; */ + } `} ); }; diff --git a/front/packages/ui/src/navbar/index.tsx b/front/packages/ui/src/navbar/index.tsx index 42df77f1..b746a394 100644 --- a/front/packages/ui/src/navbar/index.tsx +++ b/front/packages/ui/src/navbar/index.tsx @@ -21,35 +21,46 @@ import { Library, LibraryP, Page, Paged, QueryIdentifier } from "@kyoo/models"; import { IconButton, Header, Avatar, A, Skeleton, tooltip, ts } from "@kyoo/primitives"; import { View } from "react-native"; -import { useTranslation } from 'react-i18next'; -import { rem, useYoshiki } from "yoshiki/native"; +import { useTranslation } from "react-i18next"; +import { rem, Stylable, useYoshiki } from "yoshiki/native"; import { Fetch } from "../fetch"; import { KyooLongLogo } from "./icon"; -export const NavbarTitle = KyooLongLogo; +export const NavbarTitle = (props: Stylable) => { + const { t } = useTranslation(); -export const Navbar = () => { + return ( + + + + ); +}; + +export const Navbar = (props: Stylable) => { const { css } = useYoshiki(); const { t } = useTranslation(); return (
theme.appbar, - paddingX: ts(2), - height: { xs: 48, sm: 64 }, - flexDirection: "row", - justifyContent: { xs: "space-between", sm: "flex-start" }, - alignItems: "center", - shadowColor: "#000", - shadowOffset: { - width: 0, - height: 4, + {...css( + { + backgroundColor: (theme) => theme.appbar, + paddingX: ts(2), + height: { xs: 48, sm: 64 }, + flexDirection: "row", + justifyContent: { xs: "space-between", sm: "flex-start" }, + alignItems: "center", + shadowColor: "#000", + shadowOffset: { + width: 0, + height: 4, + }, + shadowOpacity: 0.3, + shadowRadius: 4.65, + elevation: 8, }, - shadowOpacity: 0.3, - shadowRadius: 4.65, - elevation: 8, - })} + props, + )} > { - {/* {isError && } */}
); };