Skip to content

Commit

Permalink
feedback, tests and internationalization - a classic warren zevon track
Browse files Browse the repository at this point in the history
  • Loading branch information
snide committed Mar 18, 2020
1 parent 78586cd commit 58439ec
Show file tree
Hide file tree
Showing 6 changed files with 106 additions and 70 deletions.
53 changes: 29 additions & 24 deletions src/core/public/chrome/ui/_loading_indicator.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,34 @@ $kbnLoadingIndicatorColor2: tint($euiColorAccent, 60%);
}
}

.kbnLoadingIndicator__bar {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
z-index: $euiZLevel1 + 1;
visibility: visible;
display: block;
animation: kbn-animate-loading-indicator 2s linear infinite;
background-color: $kbnLoadingIndicatorColor2;
background-image: linear-gradient(to right,
$kbnLoadingIndicatorColor1 0%,
$kbnLoadingIndicatorColor1 50%,
$kbnLoadingIndicatorColor2 50%,
$kbnLoadingIndicatorColor2 100%
);
background-repeat: repeat-x;
background-size: $kbnLoadingIndicatorBackgroundSize $kbnLoadingIndicatorBackgroundSize;
width: 200%;
}
.kbnLoadingIndicator__bar {
top: 0;
left: 0;
right: 0;
bottom: 0;
position: absolute;
z-index: $euiZLevel1 + 1;
visibility: visible;
display: block;
animation: kbn-animate-loading-indicator 2s linear infinite;
background-color: $kbnLoadingIndicatorColor2;
background-image: linear-gradient(
to right,
$kbnLoadingIndicatorColor1 0%,
$kbnLoadingIndicatorColor1 50%,
$kbnLoadingIndicatorColor2 50%,
$kbnLoadingIndicatorColor2 100%
);
background-repeat: repeat-x;
background-size: $kbnLoadingIndicatorBackgroundSize $kbnLoadingIndicatorBackgroundSize;
width: 200%;
}

@keyframes kbn-animate-loading-indicator {
from { transform: translateX(0); }
to { transform: translateX(-$kbnLoadingIndicatorBackgroundSize); }
@keyframes kbn-animate-loading-indicator {
from {
transform: translateX(0);
}
to {
transform: translateX(-$kbnLoadingIndicatorBackgroundSize);
}
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,38 @@
.dshExitFullScreenButton {
@include euiBottomShadow;

left: $euiSize;
bottom: $euiSize;
left: $euiSizeS;
bottom: $euiSizeS;
position: fixed;
display: block;
padding: 0;
border: none;
background: none;
z-index: 5;
background: $euiColorEmptyShade;
padding: $euiSizeS;
background: $euiColorFullShade;
padding: $euiSizeXS;
border-radius: $euiBorderRadius;
text-align: left;

&:hover {
background: $euiColorFullShade;

.dshExitFullScreenButton__icon {
color: $euiColorEmptyShade;
}
}
}

.dshExitFullScreenButton__title {
line-height: 1.2;
color: $euiColorEmptyShade;
}

.dshExitFullScreenButton__text {
line-height: 1.2;
color: makeHighContrastColor($euiColorMediumShade, $euiColorFullShade);
}

.dshExitFullScreenButton__icon {
color: makeHighContrastColor($euiColorMediumShade, $euiColorFullShade);
}
/**
* 1. Calc made to allow caret in text to peek out / animate.
*/
Original file line number Diff line number Diff line change
Expand Up @@ -65,18 +65,34 @@ class ExitFullScreenButtonUi extends PureComponent<ExitFullScreenButtonProps> {
>
<EuiFlexGroup component="span" responsive={false} alignItems="center" gutterSize="s">
<EuiFlexItem grow={false}>
<EuiIcon type="logoElastic" size="xl" />
<EuiIcon type="logoElastic" size="l" />
</EuiFlexItem>
<EuiFlexItem grow={false} data-test-subj="exitFullScreenModeText">
<EuiText color="subdued" size="xs">
<p>Powered by</p>
</EuiText>
<EuiTitle size="xxs">
<p>Elastic Kibana</p>
</EuiTitle>
<div>
<EuiTitle size="xxxs" className="dshExitFullScreenButton__title">
<p>
{i18n.translate(
'kibana-react.exitFullScreenButton.exitFullScreenModeButtonTitle',
{
defaultMessage: 'Elastic Kibana',
}
)}
</p>
</EuiTitle>
<EuiText size="xs" className="dshExitFullScreenButton__text">
<p>
{i18n.translate(
'kibana-react.exitFullScreenButton.exitFullScreenModeButtonText',
{
defaultMessage: 'Exit full screen',
}
)}
</p>
</EuiText>
</div>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiIcon type="cross" />
<EuiIcon type="fullScreen" className="dshExitFullScreenButton__icon" />
</EuiFlexItem>
</EuiFlexGroup>
</button>
Expand Down
Binary file modified test/functional/screenshots/baseline/area_chart.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/functional/screenshots/baseline/tsvb_dashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 58439ec

Please sign in to comment.