mirror of
https://github.com/apache/superset.git
synced 2026-08-05 05:22:37 +00:00
feat(theming): land Ant Design v5 overhaul — dynamic themes, real dark mode + massive styling refactor (#31590)
Co-authored-by: Enzo Martellucci <52219496+EnxDev@users.noreply.github.com> Co-authored-by: Diego Pucci <diegopucci.me@gmail.com> Co-authored-by: Mehmet Salih Yavuz <salih.yavuz@proton.me> Co-authored-by: Geido <60598000+geido@users.noreply.github.com> Co-authored-by: Alexandru Soare <37236580+alexandrusoare@users.noreply.github.com> Co-authored-by: Damian Pendrak <dpendrak@gmail.com> Co-authored-by: Pius Iniobong <67148161+payose@users.noreply.github.com> Co-authored-by: Enzo Martellucci <enzomartellucci@gmail.com> Co-authored-by: Kamil Gabryjelski <kamil.gabryjelski@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2cc1ef88c8
commit
dd129fa403
@@ -19,10 +19,10 @@
|
||||
|
||||
import { render, screen } from 'spec/helpers/testing-library';
|
||||
import { ErrorLevel, supersetTheme } from '@superset-ui/core';
|
||||
import BasicErrorAlert from './BasicErrorAlert';
|
||||
import { BasicErrorAlert } from './BasicErrorAlert';
|
||||
|
||||
jest.mock(
|
||||
'src/components/Icons/AsyncIcon',
|
||||
'@superset-ui/core/components/Icons/AsyncIcon',
|
||||
() =>
|
||||
({ fileName }: { fileName: string }) => (
|
||||
<span role="img" aria-label={fileName.replace('_', '-')} />
|
||||
@@ -72,7 +72,7 @@ test('should render with warning theme', () => {
|
||||
render(<BasicErrorAlert {...mockedProps} />);
|
||||
expect(screen.getByRole('alert')).toHaveStyle(
|
||||
`
|
||||
backgroundColor: ${supersetTheme.colors.warning.light2};
|
||||
color: ${supersetTheme.colorWarningText};
|
||||
`,
|
||||
);
|
||||
});
|
||||
@@ -85,7 +85,7 @@ test('should render with error theme', () => {
|
||||
render(<BasicErrorAlert {...errorProps} />);
|
||||
expect(screen.getByRole('alert')).toHaveStyle(
|
||||
`
|
||||
backgroundColor: ${supersetTheme.colors.error.light2};
|
||||
color: ${supersetTheme.colorErrorText};
|
||||
`,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user