Skip to content

Commit 56cfce1

Browse files
authored
Merge pull request #122 from deriv-com/shayan/add-white-color-to-text-component
chore: added white color to text component
2 parents 32e9cec + ad095bd commit 56cfce1

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

lib/components/Text/Text.scss

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ $color-map: (
1010
"red": var(--du-text-red, #ff444f),
1111
"blue": var(--du-text-info-blue, #377cfc),
1212
"green": var(--du-text-green, #17eabd),
13+
"white": var(--du-text-white, #ffffff),
1314
);
1415

1516
$desktop-font-size-map: (

lib/components/Text/index.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ type TextColors =
1212
| "error"
1313
| "red"
1414
| "blue"
15-
| "green";
15+
| "green"
16+
| "white";
1617

1718
type TGenericSizes =
1819
| "2xl"

lib/styles/base/_root.scss

+2
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@
101101
--du-icon-black-plus: #{$color-black-7};
102102
--du-text-status-info-blue: #{$color-blue};
103103
--du-text-hint: #{$color-black-1};
104+
--du-text-white: #{$color-white};
104105
// Purchase
105106
--du-purchase-main-1: #{$color-green-1};
106107
--du-purchase-section-1: #{$color-green-2};
@@ -249,6 +250,7 @@
249250
--du-text-info-blue-background: #{$color-blue-7};
250251
--du-text-status-info-blue: #{$color-blue};
251252
--du-text-hint: #{$color-gray};
253+
--du-text-white: #{$color-white};
252254
--du-icon-light-background: #{$color-black-9};
253255
--du-icon-dark-background: #{$color-white};
254256
--du-icon-gray-background: #{$color-black-1};

src/stories/Text.stories.ts

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const meta = {
3737
"red",
3838
"blue",
3939
"green",
40+
"white",
4041
],
4142
control: { type: "select" },
4243
},

0 commit comments

Comments
 (0)