Skip to content

Commit 32a9fb1

Browse files
authored
Fix InputField autofill bug (#79)
* Fix InputField autofill bug * Implement requested changes * Update package.json to 0.2.11 Signed-off-by: Saswata Mukherjee <saswataminsta@yahoo.com>
1 parent abf0636 commit 32a9fb1

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "kubera-ui",
33
"license": "Apache-2.0",
4-
"version": "0.2.10",
4+
"version": "0.2.11",
55
"private": false,
66
"description": "Component Library for Kubera products",
77
"author": "MayaData, Inc.",

src/core/InputField/styles.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ const useStyles = makeStyles((theme: Theme) => ({
1818
'& .MuiSvgIcon-root': {
1919
color: theme.palette.text.hint,
2020
},
21+
'& .MuiInputBase-input': {
22+
'&:focus, &:hover, &:active': {
23+
'&:-webkit-autofill': {
24+
WebkitBoxShadow: `0 0 0 1000px ${theme.palette.background.paper} inset`,
25+
WebkitTextFillColor: theme.palette.text.primary,
26+
},
27+
},
28+
'&:-webkit-autofill': {
29+
WebkitBoxShadow: `0 0 0 1000px ${theme.palette.background.paper} inset`,
30+
WebkitTextFillColor: theme.palette.text.primary,
31+
},
32+
},
2133
},
2234
disabled: {
2335
color: theme.palette.text.disabled,

0 commit comments

Comments
 (0)