fix(plugin/cal-heatmap): properly color tooltip's text for both dark/light theme (#38010)

This commit is contained in:
Đỗ Trọng Hải
2026-02-18 17:25:41 +07:00
committed by GitHub
parent 090eab099c
commit a30492f55e
2 changed files with 2 additions and 3 deletions

View File

@@ -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();
});

View File

@@ -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;