Skip to content

Commit

Permalink
Fix <Text> component text color value to correct color value for Li…
Browse files Browse the repository at this point in the history
…nk UI preview description text (#35851)

* Use correct text color in Text component

See #35851 (comment)

* Update snapshots with amended color value

* Update other snapshot tests
  • Loading branch information
getdave authored Oct 25, 2021
1 parent c5cbf37 commit 59efb7c
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`props should render correctly 1`] = `
.emotion-0 {
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
color: #050505;
Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/text/styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { css } from '@emotion/react';
import { COLORS, CONFIG } from '../utils';

export const Text = css`
color: ${ COLORS.black };
color: ${ COLORS.darkGray.primary };
line-height: ${ CONFIG.fontLineHeightBase };
margin: 0;
`;
Expand Down
4 changes: 2 additions & 2 deletions packages/components/src/text/test/__snapshots__/index.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

exports[`Text should render highlighted words with highlightCaseSensitive 1`] = `
.emotion-0 {
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down Expand Up @@ -30,7 +30,7 @@ exports[`Text should render highlighted words with highlightCaseSensitive 1`] =

exports[`Text snapshot tests should render correctly 1`] = `
.emotion-0 {
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`props should render correctly 1`] = `
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down Expand Up @@ -56,7 +56,7 @@ exports[`props should render no truncate 1`] = `
padding-top: calc((36px - calc(13px * 1.2)) / 2);
padding-bottom: calc((36px - calc(13px * 1.2)) / 2);
padding-top: calc((36px - calc(13px * 1.2)) / 2);
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down Expand Up @@ -102,7 +102,7 @@ exports[`props should render size 1`] = `
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ exports[`props should render alignLabel 1`] = `
padding-top: calc((36px - calc(13px * 1.2)) / 2);
padding-bottom: calc((36px - calc(13px * 1.2)) / 2);
padding-top: calc((36px - calc(13px * 1.2)) / 2);
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down Expand Up @@ -72,7 +72,7 @@ exports[`props should render vertically 1`] = `
padding-top: calc((36px - calc(13px * 1.2)) / 2);
padding-bottom: calc((36px - calc(13px * 1.2)) / 2);
padding-top: calc((36px - calc(13px * 1.2)) / 2);
color: #000;
color: #1e1e1e;
line-height: 1.2;
margin: 0;
font-size: calc((13 / 13) * 13px);
Expand Down

0 comments on commit 59efb7c

Please sign in to comment.