Skip to content

Commit

Permalink
[Look&Feel] apply pattern guidance to Dashboards (#7277) (#7287)
Browse files Browse the repository at this point in the history
(cherry picked from commit 6d6ffaa)

Signed-off-by: Zhongnan Su <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
1 parent 42140ca commit bb595dd
Show file tree
Hide file tree
Showing 6 changed files with 67 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { FormattedMessage } from '@osd/i18n/react';
import React, { ReactElement } from 'react';
import { CoreSetup } from 'src/core/public';

import { EuiContextMenuItem, EuiFlyoutBody, EuiFlyoutHeader, EuiTitle } from '@elastic/eui';
import { EuiContextMenuItem, EuiFlyoutBody, EuiFlyoutHeader, EuiText } from '@elastic/eui';

import { EmbeddableStart } from 'src/plugins/embeddable/public';
import { IContainer } from '../../../../containers';
Expand Down Expand Up @@ -163,11 +163,11 @@ export class AddPanelFlyout extends React.Component<Props, State> {
return (
<>
<EuiFlyoutHeader hasBorder>
<EuiTitle size="m">
<EuiText size="s">
<h2>
<FormattedMessage id="embeddableApi.addPanel.Title" defaultMessage="Add panels" />
</h2>
</EuiTitle>
</EuiText>
</EuiFlyoutHeader>
<EuiFlyoutBody>{savedObjectsFinder}</EuiFlyoutBody>
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export class PanelOptionsMenu extends React.Component<PanelOptionsMenuProps, Sta
<EuiContextMenu
initialPanelId="mainMenu"
panels={this.state.actionContextMenuPanel || []}
size="s"
/>
</EuiPopover>
);
Expand Down

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

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

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 @@ -43,6 +43,7 @@ import {
EuiModalHeaderTitle,
EuiScreenReaderOnly,
EuiSpacer,
EuiText,
EuiTitle,
} from '@elastic/eui';

Expand Down Expand Up @@ -96,10 +97,14 @@ class TypeSelection extends React.Component<TypeSelectionProps, TypeSelectionSta
<React.Fragment>
<EuiModalHeader>
<EuiModalHeaderTitle>
<FormattedMessage
id="visualizations.newVisWizard.title"
defaultMessage="New Visualization"
/>
<EuiText size="s">
<h2>
<FormattedMessage
id="visualizations.newVisWizard.title"
defaultMessage="New Visualization"
/>
</h2>
</EuiText>
</EuiModalHeaderTitle>
</EuiModalHeader>
<div className="visNewVisDialog__body">
Expand Down

0 comments on commit bb595dd

Please sign in to comment.