-
Notifications
You must be signed in to change notification settings - Fork 8k
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
[Dashboard] [Controls] Make floating actions keyboard accessible #152155
Merged
Heenawter
merged 13 commits into
elastic:main
from
Heenawter:fix-floating-actions-a11y_2023-02-23
Mar 6, 2023
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
0d45be9
Made the toolbar sticky instead of external
Heenawter 810f4b5
Fix maximized panel
Heenawter 40e96a9
Dynamically determine padding
Heenawter 83f4a57
Make floating actions visible on focus
Heenawter c471148
Update screenshots
Heenawter 8209c65
Add fixed header height
Heenawter 666c5ea
Fix options list tests + remove fixed header height
Heenawter 13fbc7e
Fix example plugin
Heenawter 387e59e
Clean up code + styling
Heenawter 632e057
Move functional test fix from `web_element_wrapper` to `panel_actions`
Heenawter d6cb83a
Clean up top nav bar code
Heenawter e48d610
Merge branch 'main' into fix-floating-actions-a11y_2023-02-23
Heenawter 5acb477
Remove duplicated state
Heenawter File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains 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 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 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 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 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
6 changes: 6 additions & 0 deletions
6
src/plugins/dashboard/public/dashboard_app/top_nav/_dashboard_top_nav.scss
This file contains 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,6 @@ | ||
.dashboardTopNav { | ||
position: fixed; | ||
Heenawter marked this conversation as resolved.
Show resolved
Hide resolved
|
||
z-index: $euiZLevel2; | ||
background: $euiPageBackgroundColor; | ||
width: 100%; | ||
} |
This file contains 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 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
23 changes: 23 additions & 0 deletions
23
src/plugins/presentation_util/public/components/floating_actions/floating_actions.scss
This file contains 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,23 @@ | ||
.presentationUtil__floatingActionsWrapper { | ||
position: relative; | ||
|
||
.presentationUtil__floatingActions { | ||
opacity: 0; | ||
visibility: hidden; | ||
// slower transition on hover leave in case the user accidentally stops hover | ||
transition: visibility .3s, opacity .3s; | ||
|
||
position: absolute; | ||
right: $euiSizeXS; | ||
top: (-$euiSizeL); | ||
z-index: $euiZLevel9; // the highest possible z-level | ||
} | ||
|
||
&:hover, &:focus-within { | ||
.presentationUtil__floatingActions { | ||
opacity: 1; | ||
visibility: visible; | ||
transition: visibility .1s, opacity .1s; | ||
} | ||
} | ||
} |
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the Dashboard viewport is no longer constrained to the height of its parent container, we need the container (in this case, the
EuiPanel
) to be responsible for handling the overflow.