-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Stateful sidenav] Fix highlight colours #201823
Merged
sebelga
merged 11 commits into
elastic:main
from
sebelga:stateful-sidenav/fix-highlight
Nov 28, 2024
Merged
Changes from 8 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fea7f6e
Update item open panel
sebelga 5445c6b
Use EuiButton instead of flex items
sebelga 9dbf080
Update hover color in panel links
sebelga 2a29fd8
Fix hover color in security panel links
sebelga 9e1675c
Fix functional tests
sebelga a4691d1
Fix jest tests
sebelga da2be25
Fix https://github.com/elastic/kibana/issues/200219
sebelga 8eceea7
Merge remote-tracking branch 'upstream/main' into stateful-sidenav/fi…
sebelga 9e74021
Remove unused class
sebelga 411a173
Fix functional test
sebelga f9c3623
Merge remote-tracking branch 'upstream/main' into stateful-sidenav/fi…
sebelga 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 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
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 |
---|---|---|
|
@@ -39,19 +39,19 @@ export const SolutionSideNavPanelStyles = ( | |
// bottom inset to match timeline bar top shadow | ||
inset 0 -6px ${euiTheme.size.xs} -${euiTheme.size.xs} rgb(0 0 0 / 15%); | ||
`} | ||
`; | ||
|
||
.solutionSideNavPanelLink { | ||
&:focus-within { | ||
background-color: transparent; | ||
a { | ||
text-decoration: auto; | ||
} | ||
export const SolutionSideNavPanelItemStyles = (euiTheme: EuiThemeComputed<{}>) => css` | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Had to move those style outside as for the platform side nav the links are rendered in a different panel |
||
&:focus-within { | ||
background-color: transparent; | ||
a { | ||
text-decoration: auto; | ||
} | ||
&:hover { | ||
background-color: ${transparentize(euiTheme.colors.primary, 0.1)}; | ||
a { | ||
text-decoration: underline; | ||
} | ||
} | ||
&:hover { | ||
background-color: ${transparentize(euiTheme.colors.lightShade, 0.5)}; | ||
a { | ||
text-decoration: underline; | ||
} | ||
} | ||
`; | ||
|
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
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.
I had to convert to String as the error that was passed was an "object" type that does not have the
includes
prop