mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-02-24 04:00:59 +01:00
theme: improve input focus border on non-chrome browsers
We were using box-shadow previously to draw a fake border. While this worked on Chrome-based browsers, it failed on Firefox & WebKit. This change uses the outline property.
This commit is contained in:
committed by
Abdullah Atta
parent
a46857974c
commit
04fe4a7217
@@ -104,13 +104,13 @@ const list: ThemeUIStyleObject = {
|
||||
const anchor: ThemeUIStyleObject = {
|
||||
variant: "buttons.default",
|
||||
color: "primary",
|
||||
fontSize: "subBody",
|
||||
p: 0,
|
||||
m: 0,
|
||||
px: 0,
|
||||
py: 0,
|
||||
textDecoration: "underline",
|
||||
":hover": {
|
||||
textDecoration: "underline"
|
||||
color: "dimPrimary"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -22,18 +22,16 @@ import { ThemeUIStyleObject } from "@theme-ui/core";
|
||||
const defaultVariant: ThemeUIStyleObject = {
|
||||
borderRadius: "default",
|
||||
border: "none",
|
||||
// borderColor: "border",
|
||||
boxShadow: "0px 0px 0px 1px var(--border) inset",
|
||||
outline: "1.5px solid var(--border)",
|
||||
fontFamily: "body",
|
||||
fontWeight: "body",
|
||||
fontSize: "input",
|
||||
color: "text",
|
||||
outline: "none",
|
||||
":focus": {
|
||||
boxShadow: "0px 0px 0px 1.5px var(--primary) inset"
|
||||
outline: "2px solid var(--primary)"
|
||||
},
|
||||
":hover:not(:focus)": {
|
||||
boxShadow: "0px 0px 0px 1px var(--dimPrimary) inset"
|
||||
outline: "1.5px solid var(--dimPrimary)"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user