Skip to content

Commit

Permalink
[UX] Consolidate menu bars
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Romero <[email protected]>
  • Loading branch information
joshuarrrr committed May 17, 2022
1 parent 1792662 commit d2a2e09
Show file tree
Hide file tree
Showing 9 changed files with 1,068 additions and 2,167 deletions.
2 changes: 1 addition & 1 deletion src/core/public/_variables.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
@import "@elastic/eui/src/global_styling/variables/header";

$osdHeaderOffset: $euiHeaderHeightCompensation * 2;
$osdHeaderOffset: $euiHeaderHeightCompensation;
2,786 changes: 841 additions & 1,945 deletions src/core/public/chrome/ui/header/__snapshots__/header.test.tsx.snap

Large diffs are not rendered by default.

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 @@ -5,7 +5,7 @@

import React from 'react';
import { mountWithIntl } from 'test_utils/enzyme_helpers';
import { CustomLogo } from './opensearch_dashboards_custom_logo';
import { Mark } from './mark';

describe('Header logo ', () => {
describe('in default mode ', () => {
Expand All @@ -16,7 +16,7 @@ describe('Header logo ', () => {
mark: {},
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -27,7 +27,7 @@ describe('Header logo ', () => {
mark: { defaultUrl: '/defaultModeMark' },
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -38,7 +38,7 @@ describe('Header logo ', () => {
mark: {},
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});
});
Expand All @@ -51,7 +51,7 @@ describe('Header logo ', () => {
mark: { defaultUrl: '/defaultModeMark', darkModeUrl: '/darkModeMark' },
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -62,7 +62,7 @@ describe('Header logo ', () => {
mark: { defaultUrl: '/defaultModeMark', darkModeUrl: '/darkModeMark' },
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -73,7 +73,7 @@ describe('Header logo ', () => {
mark: { defaultUrl: '/defaultModeMark', darkModeUrl: '/darkModeMark' },
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -84,7 +84,7 @@ describe('Header logo ', () => {
mark: { defaultUrl: '/defaultModeMark' },
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});

Expand All @@ -95,7 +95,7 @@ describe('Header logo ', () => {
mark: {},
applicationTitle: 'custom title',
};
const component = mountWithIntl(<CustomLogo {...branding} />);
const component = mountWithIntl(<Mark {...branding} />);
expect(component).toMatchSnapshot();
});
});
Expand Down
Loading

0 comments on commit d2a2e09

Please sign in to comment.