fix: remove ms-reveal for input (#553)

* fix: remove ms-reveal for input

* fix(lint): no-unused-vars for next line
This commit is contained in:
Harsh Karande
2021-06-04 14:13:35 +05:30
committed by GitHub
parent 22261e2b4c
commit 74e76adbcf
5 changed files with 92 additions and 4 deletions

View File

@@ -154,6 +154,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -272,6 +276,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -577,6 +585,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -695,6 +707,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -989,6 +1005,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -1107,6 +1127,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -1412,6 +1436,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -1530,6 +1558,10 @@ initialize {
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,

View File

@@ -97,6 +97,10 @@ exports[`Input should be work with icon 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -200,6 +204,10 @@ exports[`Input should be work with icon 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -320,6 +328,10 @@ exports[`Input should be work with label 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -436,6 +448,10 @@ exports[`Input should be work with label 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -542,6 +558,10 @@ exports[`Input should be work with label 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -634,6 +654,10 @@ exports[`Input should work with different sizes 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -722,6 +746,10 @@ exports[`Input should work with different sizes 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -810,6 +838,10 @@ exports[`Input should work with different sizes 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -898,6 +930,10 @@ exports[`Input should work with different sizes 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -990,6 +1026,10 @@ exports[`Input should work with different status 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -1078,6 +1118,10 @@ exports[`Input should work with different status 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,
@@ -1166,6 +1210,10 @@ exports[`Input should work with different status 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,

View File

@@ -97,6 +97,10 @@ exports[`InputPassword should render correctly 1`] = `
color: #999;
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,

View File

@@ -254,6 +254,10 @@ const Input = React.forwardRef<HTMLInputElement, React.PropsWithChildren<InputPr
color: ${theme.palette.accents_3};
}
::-ms-reveal {
display: none !important;
}
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:active,

View File

@@ -12,13 +12,13 @@ const makeVirtualValues = <S,>(values: S): ContextStates<S> => {
const keys = Object.keys(values) as Array<keyof S>
const handlers = keys.reduce<ContextHandler<S>>((pre, current) => {
const updateHandler = {
// @ts-ignore
[`set${capitalize(current)}`]: (next: S[typeof current]) => {},
// eslint-disable-next-line @typescript-eslint/no-unused-vars
[`set${capitalize(current)}`]: (_next: S[typeof current]) => {},
}
return { ...pre, ...updateHandler }
}, {} as ContextHandler<S>)
// @ts-ignore
const update: ContextHandlerWhere<S> = (key, next) => {}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const update: ContextHandlerWhere<S> = (_key, _next) => {}
return {
update,
...values,