Skip to content

Commit

Permalink
[Look&Feel] apply missing pattern guidance to Alerting experience (op…
Browse files Browse the repository at this point in the history
…ensearch-project#1004)

Signed-off-by: Zhongnan Su <[email protected]>
  • Loading branch information
zhongnansu authored Jul 18, 2024
1 parent 6500ea5 commit 3c6cb06
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cypress/integration/composite_level_monitor_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ describe('CompositeLevelMonitor', () => {

// Wait for monitor to be created
cy.wait('@updateMonitorRequest').then(() => {
cy.get('.euiTitle--small').contains(`${SAMPLE_VISUAL_EDITOR_MONITOR}_edited`);
cy.get('.euiText--small').contains(`${SAMPLE_VISUAL_EDITOR_MONITOR}_edited`);
});
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ Object {
<EuiFlexItem
className="eui-textTruncate"
>
<EuiTitle
<EuiText
className="eui-textTruncate"
data-test-subj="alertsDashboardFlyout_header_undefined"
size="m"
size="s"
>
<h3>
<h2>
Alerts by undefined
</h3>
</EuiTitle>
</h2>
</EuiText>
</EuiFlexItem>
<EuiFlexItem
grow={false}
Expand Down
10 changes: 5 additions & 5 deletions public/components/Flyout/flyouts/alertsDashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

import React from 'react';
import { EuiFlexGroup, EuiButtonIcon, EuiTitle, EuiFlexItem } from '@elastic/eui';
import { EuiFlexGroup, EuiButtonIcon, EuiText, EuiFlexItem } from '@elastic/eui';
import AlertsDashboardFlyoutComponent from './components/AlertsDashboardFlyoutComponent';

const alertsDashboard = (payload) => {
Expand All @@ -20,13 +20,13 @@ const alertsDashboard = (payload) => {
header: (
<EuiFlexGroup justifyContent="flexStart" alignItems="center">
<EuiFlexItem className="eui-textTruncate">
<EuiTitle
<EuiText
className="eui-textTruncate"
size={'m'}
size={'s'}
data-test-subj={`alertsDashboardFlyout_header_${trigger_name}`}
>
<h3>{`Alerts by ${trigger_name}`}</h3>
</EuiTitle>
<h2>{`Alerts by ${trigger_name}`}</h2>
</EuiText>
</EuiFlexItem>
<EuiFlexItem grow={false}>
<EuiButtonIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class MonitorActions extends Component {
panelPaddingSize="none"
anchorPosition="downLeft"
>
<EuiContextMenuPanel items={this.getActions()} />
<EuiContextMenuPanel items={this.getActions()} size="s" />
</EuiPopover>
</EuiFlexItem>
<EuiFlexItem grow={false}>
Expand Down

0 comments on commit 3c6cb06

Please sign in to comment.