Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Clutch
Commits
41d42653
Commit
41d42653
authored
4 years ago
by
SHAWNA MONERO
Browse files
Options
Download
Email Patches
Plain Diff
still unsure how to fix storybook typing
parent
6f4895d7
chipMigration
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/packages/core/src/chip.tsx
+8
-0
frontend/packages/core/src/chip.tsx
with
8 additions
and
0 deletions
+8
-0
frontend/packages/core/src/chip.tsx
+
8
-
0
View file @
41d42653
...
@@ -30,30 +30,37 @@ const CHIP_COLOR_MAP = {
...
@@ -30,30 +30,37 @@ const CHIP_COLOR_MAP = {
error
:
{
error
:
{
background
:
"
#F9EAE7
"
,
background
:
"
#F9EAE7
"
,
label
:
"
#C2302E
"
,
label
:
"
#C2302E
"
,
borderColor
:
"
#C2302E
"
,
},
},
warn
:
{
warn
:
{
background
:
"
#FEF8E8
"
,
background
:
"
#FEF8E8
"
,
label
:
"
#D87313
"
,
label
:
"
#D87313
"
,
borderColor
:
"
##D87313
"
,
},
},
attention
:
{
attention
:
{
background
:
"
#E2E2E6
"
,
background
:
"
#E2E2E6
"
,
label
:
"
#0D1030
"
,
label
:
"
#0D1030
"
,
borderColor
:
"
##0D103061
"
,
},
},
neutral
:
{
neutral
:
{
background
:
"
#F8F8F9
"
,
background
:
"
#F8F8F9
"
,
label
:
"
#0D1030
"
,
label
:
"
#0D1030
"
,
borderColor
:
"
#0D10301A
"
,
},
},
active
:
{
active
:
{
background
:
"
#EBEDFA
"
,
background
:
"
#EBEDFA
"
,
label
:
"
#3548D4
"
,
label
:
"
#3548D4
"
,
borderColor
:
"
#3548D4
"
,
},
},
pending
:
{
pending
:
{
background
:
"
#FFFEE8
"
,
background
:
"
#FFFEE8
"
,
label
:
"
#B09027
"
,
label
:
"
#B09027
"
,
borderColor
:
"
#B09027
"
,
},
},
success
:
{
success
:
{
background
:
"
#E9F6EC
"
,
background
:
"
#E9F6EC
"
,
label
:
"
#40A05A
"
,
label
:
"
#40A05A
"
,
borderColor
:
"
#40A05A
"
,
},
},
};
};
...
@@ -72,6 +79,7 @@ const StyledChip = styled(MuiChip)(
...
@@ -72,6 +79,7 @@ const StyledChip = styled(MuiChip)(
props
=>
({
props
=>
({
background
:
CHIP_COLOR_MAP
[
props
[
"
data-variant
"
]].
background
,
background
:
CHIP_COLOR_MAP
[
props
[
"
data-variant
"
]].
background
,
color
:
CHIP_COLOR_MAP
[
props
[
"
data-variant
"
]].
label
,
color
:
CHIP_COLOR_MAP
[
props
[
"
data-variant
"
]].
label
,
borderColor
:
CHIP_COLOR_MAP
[
props
[
"
data-variant
"
]].
borderColor
,
})
})
);
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help