Skip to content

Commit

Permalink
Merge pull request #145 from oceanbase/dengfuping-design-theme
Browse files Browse the repository at this point in the history
improve(design): Tooltip light style in dark theme
  • Loading branch information
dengfuping authored Sep 24, 2023
2 parents 5b199c1 + 6b9e979 commit d07096c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/design/src/tooltip/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export const getTooltipTypeList = () => [
{
type: 'light',
color: token.colorText,
backgroundColor: '#ffffff',
backgroundColor: token.colorBgElevated,
},
{
type: 'success',
Expand Down Expand Up @@ -89,11 +89,11 @@ const Tooltip: CompoundedComponent = ({
};

const hasCloseIcon = !!closeIcon;

const CloseIconNode = useMemo(() => {
if (!hasCloseIcon) {
return null;
}

return closeIcon === true ? (
<CloseOutlined className={`${prefixCls}-close-icon`} onClick={handleCloseClick} />
) : (
Expand Down Expand Up @@ -132,8 +132,8 @@ const Tooltip: CompoundedComponent = ({
title={hasCloseIcon ? titleWithCloseIcon : title}
color={color || typeItem?.backgroundColor}
open={open}
onOpenChange={open => {
setInnerOpen(open);
onOpenChange={newOpen => {
setInnerOpen(newOpen);
}}
overlayInnerStyle={{
color: typeItem?.color,
Expand Down

0 comments on commit d07096c

Please sign in to comment.