Cleanup focus reset

This commit is contained in:
Zoe Roux 2023-11-05 22:24:29 +01:00
parent 4bfd7c348d
commit 556b2a2317
2 changed files with 3 additions and 1 deletions

View File

@ -25,7 +25,7 @@ import { YoshikiStyle } from "yoshiki";
import { px, Stylable, Theme, useYoshiki } from "yoshiki/native";
import { PressableFeedback } from "./links";
import { alpha } from "./themes";
import { Breakpoint, ts, useBreakpointValue } from "./utils";
import { Breakpoint, focusReset, ts, useBreakpointValue } from "./utils";
import { P } from "./text";
declare module "react" {
@ -90,6 +90,7 @@ export const IconButton = forwardRef(function IconButton<AsProps = PressableProp
borderRadius: 9999,
fover: {
self: {
...focusReset,
bg: (theme: Theme) => theme.overlay0,
},
},

View File

@ -29,5 +29,6 @@ export const focusReset: object =
Platform.OS === "web"
? {
boxShadow: "unset",
outline: "none"
}
: {};