Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
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
LuckySwap
interface
Commits
a61eca36
Unverified
Commit
a61eca36
authored
Aug 24, 2022
by
Kaylee George
Committed by
GitHub
Aug 24, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: change toggle and input placeholder colors on swap settings flyout (#4466)
change colors
parent
60479a44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
index.tsx
src/components/Toggle/index.tsx
+8
-3
index.tsx
src/components/TransactionSettings/index.tsx
+4
-0
No files found.
src/components/Toggle/index.tsx
View file @
a61eca36
...
@@ -6,13 +6,18 @@ import styled, { keyframes } from 'styled-components/macro'
...
@@ -6,13 +6,18 @@ import styled, { keyframes } from 'styled-components/macro'
const
Wrapper
=
styled
.
button
<
{
isActive
?:
boolean
;
activeElement
?:
boolean
;
redesignFlag
:
boolean
}
>
`
const
Wrapper
=
styled
.
button
<
{
isActive
?:
boolean
;
activeElement
?:
boolean
;
redesignFlag
:
boolean
}
>
`
align-items: center;
align-items: center;
background:
${({
isActive
,
theme
,
redesignFlag
})
=>
background:
${({
isActive
,
theme
,
redesignFlag
})
=>
redesignFlag
&&
isActive
?
theme
.
accentActionSoft
:
theme
.
deprecated_bg1
}
;
redesignFlag
&&
isActive
border: none;
?
theme
.
accentActionSoft
:
redesignFlag
&&
!
isActive
?
'
transparent
'
:
theme
.
deprecated_bg1
}
;
border:
${({
redesignFlag
,
theme
,
isActive
})
=>
redesignFlag
&&
!
isActive
?
`1px solid
${
theme
.
backgroundOutline
}
`
:
'
none
'
}
;
border-radius: 20px;
border-radius: 20px;
cursor: pointer;
cursor: pointer;
display: flex;
display: flex;
outline: none;
outline: none;
padding:
0.4rem 0.4rem
;
padding:
${({
redesignFlag
})
=>
(
redesignFlag
?
'
4px
'
:
'
0.4rem 0.4rem
'
)}
;
width: fit-content;
width: fit-content;
`
`
...
...
src/components/TransactionSettings/index.tsx
View file @
a61eca36
...
@@ -64,6 +64,10 @@ const Input = styled.input<{ redesignFlag: boolean }>`
...
@@ -64,6 +64,10 @@ const Input = styled.input<{ redesignFlag: boolean }>`
}
}
color:
${({
theme
,
color
})
=>
(
color
===
'
red
'
?
theme
.
deprecated_red1
:
theme
.
deprecated_text1
)}
;
color:
${({
theme
,
color
})
=>
(
color
===
'
red
'
?
theme
.
deprecated_red1
:
theme
.
deprecated_text1
)}
;
text-align: right;
text-align: right;
::placeholder {
color:
${({
theme
,
redesignFlag
})
=>
redesignFlag
&&
theme
.
textTertiary
}
;
}
`
`
const
OptionCustom
=
styled
(
FancyButton
)
<
{
active
?:
boolean
;
warning
?:
boolean
;
redesignFlag
:
boolean
}
>
`
const
OptionCustom
=
styled
(
FancyButton
)
<
{
active
?:
boolean
;
warning
?:
boolean
;
redesignFlag
:
boolean
}
>
`
...
...
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