Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
10b69e1c
Commit
10b69e1c
authored
Jan 11, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled input styles
parent
43370774
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
2 deletions
+8
-2
getOutlinedFieldStyles.ts
theme/utils/getOutlinedFieldStyles.ts
+4
-0
ContractMethodField.tsx
ui/address/contract/ContractMethodField.tsx
+1
-1
InputClearButton.tsx
ui/shared/InputClearButton.tsx
+3
-1
No files found.
theme/utils/getOutlinedFieldStyles.ts
View file @
10b69e1c
...
...
@@ -30,6 +30,10 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
_hover
:
{
borderColor
:
'
transparent
'
,
},
'
:-webkit-autofill
'
:
{
// background color for disabled input which value was selected from browser autocomplete popup
'
-webkit-box-shadow
'
:
`0 0 0px 1000px
${
mode
(
'
rgba(16, 17, 18, 0.08)
'
,
'
rgba(255, 255, 255, 0.08)
'
)(
props
)
}
inset`
,
},
},
_invalid
:
{
borderColor
:
getColor
(
theme
,
errorColor
),
...
...
ui/address/contract/ContractMethodField.tsx
View file @
10b69e1c
...
...
@@ -34,7 +34,7 @@ const ContractMethodField = ({ control, name, placeholder, setValue, isDisabled
/>
{
field
.
value
&&
(
<
InputRightElement
>
<
InputClearButton
onClick=
{
handleClear
}
/>
<
InputClearButton
onClick=
{
handleClear
}
isDisabled=
{
isDisabled
}
/>
</
InputRightElement
>
)
}
</
InputGroup
>
...
...
ui/shared/InputClearButton.tsx
View file @
10b69e1c
...
...
@@ -5,13 +5,15 @@ import crossIcon from 'icons/cross.svg';
interface
Props
{
onClick
:
()
=>
void
;
isDisabled
?:
boolean
;
}
const
InputClearButton
=
({
onClick
}:
Props
)
=>
{
const
InputClearButton
=
({
onClick
,
isDisabled
}:
Props
)
=>
{
const
iconColor
=
useColorModeValue
(
'
blackAlpha.600
'
,
'
whiteAlpha.600
'
);
return
(
<
IconButton
isDisabled=
{
isDisabled
}
colorScheme=
"gray"
aria
-
label=
"Clear input"
title=
"Clear input"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment