mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[APM] Dark mode fix for Service icon buttons (#146485)
## Summary Simple fix to remove the custom styles for the service icon buttons, and use `EuiButtonIcon`. That way we easily support the dark mode and we also close an issue that was created. #127249   Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
22fbb58ddf
commit
1d75430642
1 changed files with 2 additions and 12 deletions
|
@ -11,9 +11,7 @@ import {
|
|||
EuiPopover,
|
||||
EuiPopoverTitle,
|
||||
} from '@elastic/eui';
|
||||
import { rgba } from 'polished';
|
||||
import React from 'react';
|
||||
import styled from 'styled-components';
|
||||
import { PopoverItem } from '.';
|
||||
import { FETCH_STATUS } from '../../../hooks/use_fetcher';
|
||||
|
||||
|
@ -27,15 +25,6 @@ interface IconPopoverProps {
|
|||
icon: PopoverItem['icon'];
|
||||
}
|
||||
|
||||
const StyledButtonIcon = styled(EuiButtonIcon)`
|
||||
&.serviceIcon_button {
|
||||
box-shadow: ${({ theme }) => {
|
||||
const shadowColor = theme.eui.euiShadowColor;
|
||||
return `0px 0.7px 1.4px ${rgba(shadowColor, 0.07)},
|
||||
0px 1.9px 4px ${rgba(shadowColor, 0.05)},
|
||||
0px 4.5px 10px ${rgba(shadowColor, 0.05)} !important;`;
|
||||
}}
|
||||
`;
|
||||
export function IconPopover({
|
||||
icon,
|
||||
title,
|
||||
|
@ -54,7 +43,8 @@ export function IconPopover({
|
|||
anchorPosition="downCenter"
|
||||
ownFocus={false}
|
||||
button={
|
||||
<StyledButtonIcon
|
||||
<EuiButtonIcon
|
||||
display="base"
|
||||
color="text"
|
||||
onClick={onClick}
|
||||
iconType={icon.type}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue