mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix(plugin/cal-heatmap): properly color tooltip's text for both dark/light theme (#38010)
This commit is contained in:
@@ -27,8 +27,7 @@ test('Returns null if Selection object is null', () => {
|
||||
test('Returns selection text if Selection object is not null', () => {
|
||||
jest
|
||||
.spyOn(window, 'getSelection')
|
||||
// @ts-expect-error
|
||||
.mockImplementationOnce(() => ({ toString: () => 'test string' }));
|
||||
.mockImplementationOnce(() => ({ toString: () => 'test string' }) as any);
|
||||
expect(getSelectedText()).toEqual('test string');
|
||||
jest.restoreAllMocks();
|
||||
});
|
||||
|
||||
@@ -46,7 +46,7 @@ const Calendar = ({ className, ...otherProps }: CalendarWrapperProps) => {
|
||||
line-height: 1;
|
||||
padding: ${theme.sizeUnit * 3}px;
|
||||
background: ${theme.colorBgElevated};
|
||||
color: ${theme.colorTextLightSolid};
|
||||
color: ${theme.colorTextBase};
|
||||
border-radius: 4px;
|
||||
pointer-events: none;
|
||||
z-index: 1000;
|
||||
|
||||
Reference in New Issue
Block a user