Skip to content

Commit

Permalink
[Look&Feel] apply pattern guidance to Dashboards (opensearch-project#…
Browse files Browse the repository at this point in the history
…7277)

Signed-off-by: Zhongnan Su <szhongna@amazon.com>
  • Loading branch information
zhongnansu authored Jul 17, 2024
1 parent 41900a0 commit 6d6ffaa
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 6d6ffaa

Please sign in to comment.