Skip to content

Commit

Permalink
RG-1746 do not hardcode color to "font"
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-skl committed Mar 26, 2018
1 parent 770c8a4 commit 46197f6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 0 additions & 2 deletions components/global/global.css
Expand Up @@ -49,8 +49,6 @@
}

.font {
color: text-color;

/* This is a carefully tested set of fonts, do not touch without consulting with UI designers */

font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
Expand Down
5 changes: 4 additions & 1 deletion packages/docs/components/example-common.css
@@ -1,4 +1,4 @@
@value unit, font, font-size, line-height from '../node_modules/@jetbrains/ring-ui/components/global/global.css';
@value unit, font, font-size, text-color, line-height from '../node_modules/@jetbrains/ring-ui/components/global/global.css';

body {
margin: unit calc(unit * 4) calc(unit * 2);
Expand All @@ -8,7 +8,10 @@ body {
.body {
composes: font;

color: text-color;

font-size: font-size;

line-height: line-height;
}

Expand Down
2 changes: 2 additions & 0 deletions packages/docs/components/index.css
Expand Up @@ -15,6 +15,8 @@ body {

min-width: breakpoint-middle;
min-height: 100vh;

color: text-color;
}

.headerItem {
Expand Down

0 comments on commit 46197f6

Please sign in to comment.