-
Notifications
You must be signed in to change notification settings - Fork 886
[EuiHeader] Increase z-index value #8325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d17cf70
Change header z-index from 1000 to 2000
acstll e93bd4d
Use levels.flyout (instead of .header) for EuiDataGrid cell popover
acstll bd33e72
Update snapshots
acstll 139ee24
Add example to docs for testing purposes
acstll fa41243
Revert changing levels.header value
acstll 8216ed0
Increase fixed EuiHeader z-index by 1
acstll f70c52d
Changelog
acstll 530902d
Merge remote-tracking branch 'upstream/main' into header-z-index-8206
acstll 49c1ae5
Add spec to test fixed Header is above Flyout
acstll 7686c05
Update hint text in EuiCollapsibleNavBeta story
acstll cf1f070
Add focusable items to EuiCollapsibleNavBeta flyout story
acstll 192efcc
Only one item in the changelog
acstll cdebce0
Include EuiCollapsibleNavBeta in flyout shards spec
acstll 108ab90
Merge remote-tracking branch 'upstream/main' into header-z-index-8206
acstll 3026d8a
Remove testing example from docs
acstll 1c98683
Include EuiCollapsibleNav in flyout shards spec
acstll bb61e92
Skip failing spec
acstll 59bdf51
Add links to comment in skipped test
acstll 0123868
refactor(EuiHeader): update shadow to xs
mgadewoll File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| **Bug fixes** | ||
|
|
||
| - Fixed a bug in `EuiHeader` where the navigation of `EuiCollapsibleNavBeta` would render below the `EuiFlyout`'s overlay | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0 and the Server Side Public License, v 1; you may not use this file except | ||
| * in compliance with, at your election, the Elastic License 2.0 or the Server | ||
| * Side Public License, v 1. | ||
| */ | ||
|
|
||
| /// <reference types="cypress" /> | ||
| /// <reference types="cypress-real-events" /> | ||
| /// <reference types="../../../cypress/support" /> | ||
|
|
||
| import React from 'react'; | ||
|
|
||
| import { EuiHeader } from './header'; | ||
| import { EuiFlyout } from '../flyout'; | ||
|
|
||
| describe('EuiHeader', () => { | ||
| describe('fixed position', () => { | ||
| it('is above EuiFlyout', () => { | ||
|
mgadewoll marked this conversation as resolved.
|
||
| cy.mount( | ||
| <> | ||
| <EuiHeader data-test-subj="header" position="fixed" /> | ||
| <EuiFlyout data-test-subj="flyout" /> | ||
| </> | ||
| ); | ||
|
|
||
| cy.get('[data-test-subj="flyout"]').then(($flyout) => { | ||
| const styles = window.getComputedStyle($flyout[0]); | ||
| const flyoutZIndex = parseInt(styles.getPropertyValue('z-index'), 10); | ||
|
|
||
| cy.get('[data-test-subj="header"]') | ||
| .should('have.css', 'z-index') | ||
| .then((value) => parseInt(value, 10)) | ||
| .and('be.above', flyoutZIndex); | ||
| }); | ||
| }); | ||
| }); | ||
| }); | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.