Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
- Added <dl> to example
- fixed typo
  • Loading branch information
cchaos committed Apr 18, 2018
1 parent 87de5a2 commit eaffebc
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 7 deletions.
24 changes: 24 additions & 0 deletions src-docs/src/views/text/text.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React from 'react';

import {
EuiText,
EuiHorizontalRule,
} from '../../../../src/components';

export default () => (
Expand Down Expand Up @@ -100,6 +101,29 @@ export default () => (
</p>

<h6>This is Heading Six</h6>

<EuiHorizontalRule />

<dl>
<dt>
The Elder Scrolls: Morrowind
</dt>
<dd>
The opening music alone evokes such strong memories.
</dd>
<dt>
TIE Fighter
</dt>
<dd>
The sequel to XWING, join the dark side and fly for the Emporer.
</dd>
<dt>
Quake 2
</dt>
<dd>
The game that made me drop out of college.
</dd>
</dl>
</EuiText>
</div>
);
2 changes: 1 addition & 1 deletion src-docs/src/views/text/text_align.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default () => (
<p>You can also pass alignment to <EuiCode>EuiText</EuiCode> directly with a prop</p>
</EuiText>
<EuiText textAlign="center" color="secondary">
<p>And in conjuction with coloring.</p>
<p>And in conjunction with coloring.</p>
</EuiText>
</div>
);
24 changes: 24 additions & 0 deletions src-docs/src/views/text/text_small.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
EuiText,
EuiFlexGroup,
EuiFlexItem,
EuiHorizontalRule,
} from '../../../../src/components';

const exampleText = (
Expand Down Expand Up @@ -88,6 +89,29 @@ const exampleText = (
</p>

<h6>This is Heading Six</h6>

<EuiHorizontalRule />

<dl>
<dt>
The Elder Scrolls: Morrowind
</dt>
<dd>
The opening music alone evokes such strong memories.
</dd>
<dt>
TIE Fighter
</dt>
<dd>
The sequel to XWING, join the dark side and fly for the Emporer.
</dd>
<dt>
Quake 2
</dt>
<dd>
The game that made me drop out of college.
</dd>
</dl>
</div>
);

Expand Down
10 changes: 4 additions & 6 deletions src/components/text/_text.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@
line-height: convertToRem($baseLineHeightMultiplier * 4);
}

h4 {
h4,
dt {
font-size: convertToRem($baseFontSize * nth($euiTextScale, 5)); // skip level 4 on purpose
}

Expand Down Expand Up @@ -110,10 +111,6 @@
list-style: decimal;
}

dt {
@include euiTitle("xs");
}

blockquote {
position: relative;
text-align: center;
Expand Down Expand Up @@ -156,7 +153,8 @@
@include euiTitle("s");
}

h4 {
h4,
dt {
@include euiTitle("xs");
}

Expand Down

0 comments on commit eaffebc

Please sign in to comment.