Skip to content

Commit

Permalink
Style dashboard buttons the same way (#63403) (#63697)
Browse files Browse the repository at this point in the history
* Stylize dashboard buttons the same way

* update snapshots

Co-authored-by: Elastic Machine <[email protected]>

Co-authored-by: Elastic Machine <[email protected]>
  • Loading branch information
ryankeairns and elasticmachine authored Apr 16, 2020
1 parent 9479795 commit 959bf00
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 26 deletions.

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

10 changes: 1 addition & 9 deletions src/plugins/dashboard/public/application/_dashboard_app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,10 @@

.dshEmptyWidget {
border: $euiBorderThin;
border-style: dashed;
border-style: dashed;
border-radius: $euiBorderRadius;
padding: $euiSizeXXL * 2;
max-width: 400px;
margin-left: $euiSizeS;
text-align: center;
}

.dshEmptyWidget {
border: 2px dashed $euiColorLightShade;
padding: 4 * $euiSize;
max-width: 20em;
margin-left: 10px;
text-align: center;
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ export function DashboardEmptyScreen({
const linkToVisualizeParagraph = (
<p data-test-subj="linkToVisualizeParagraph">
<EuiButton
iconSide="right"
iconSide="left"
size="s"
fill
iconType="arrowDown"
iconType="plusInCircle"
onClick={onVisualizeClick}
data-test-subj="addVisualizationButton"
aria-label={constants.createNewVisualizationButtonAriaLabel}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ export function SavedObjectFinderCreateNew({ menuItems }: Props) {
button={
<EuiButton
data-test-subj="createNew"
iconType="arrowDown"
iconSide="right"
iconType="plusInCircle"
iconSide="left"
onClick={toggleCreateMenu}
fill
>
Expand Down

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 @@ -49,7 +49,7 @@ export function TopNavMenuItem(props: TopNavMenuData) {
};

const btn = props.emphasize ? (
<EuiButton {...commonButtonProps} size="s" fill style={{ fontSize: 'smaller' }}>
<EuiButton {...commonButtonProps} size="s" fill>
{capitalize(props.label || props.id!)}
</EuiButton>
) : (
Expand Down

0 comments on commit 959bf00

Please sign in to comment.