Skip to content

Commit

Permalink
[ML] Fixes to text spacings in data visualizer cards (#29438)
Browse files Browse the repository at this point in the history
* [ML] Fixes to text spacings in data visualizer cards

* [ML] Switch to using euiFontSizeL include for field title bar
  • Loading branch information
peteharverson authored Jan 29, 2019
1 parent a8e4be0 commit 191fedf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
.ml-field-title-bar {
color: $euiColorEmptyShade;
font-size: $euiFontSizeL;
@include euiFontSizeL;
text-align: center;
border-radius: $euiBorderRadius $euiBorderRadius 0px 0px;
padding: $euiSizeXS $euiSizeS;
padding-bottom: $euiSizeXS/2;

.field-type-icon {
vertical-align: middle;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function FieldStatsCard({ field }) {
<React.Fragment>
<div className="stats">
<div className="stat">
<i className="fa fa-files-o" aria-hidden="true" />
<i className="fa fa-files-o" aria-hidden="true" />&nbsp;
<FormattedMessage
id="xpack.ml.fileDatavisualizer.fieldStatsCard.documentsCountDescription"
defaultMessage="{fieldCount, plural, zero {# document} one {# document} other {# documents}} ({fieldPercent}%)"
Expand All @@ -48,7 +48,7 @@ export function FieldStatsCard({ field }) {
/>
</div>
<div className="stat">
<i className="fa fa-cubes" aria-hidden="true" />
<i className="fa fa-cubes" aria-hidden="true" />&nbsp;
<FormattedMessage
id="xpack.ml.fileDatavisualizer.fieldStatsCard.distinctCountDescription"
defaultMessage="{fieldCardinality} distinct {fieldCardinality, plural, zero {value} one {value} other {values}}"
Expand Down

0 comments on commit 191fedf

Please sign in to comment.