Skip to content

Commit e7aede6

Browse files
author
amars29
committed
fix: outline color of pressable
1 parent 6cd8568 commit e7aede6

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

src/theme/components/pressable.ts

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
1+
import { mode } from '../tools';
2+
3+
const baseStyle = (props: any) => {
4+
const { primary } = props.theme.colors;
5+
const focusRing = mode(
6+
{
7+
boxShadow: `${primary[400]} 0px 0px 0px 2px`,
8+
},
9+
{
10+
boxShadow: `${primary[500]} 0px 0px 0px 2px`,
11+
}
12+
)(props);
13+
14+
return {
15+
_focusVisible: {
16+
_web: { style: { ...focusRing, outlineWidth: 0 } },
17+
},
18+
};
19+
};
20+
121
export default {
2-
baseStyle: {},
22+
baseStyle,
323
defaultProps: {},
424
};

0 commit comments

Comments
 (0)