This is an automated email from the ASF dual-hosted git repository. maximebeauchemin pushed a commit to branch template_less_preset_theme_editor in repository https://gitbox.apache.org/repos/asf/superset.git
commit 103bdb03efb96d4afac71d8df73c2f978d2a1f02 Author: Maxime Beauchemin <[email protected]> AuthorDate: Tue Apr 1 13:11:00 2025 -0700 close modal on apply --- superset-frontend/src/components/ThemeEditor/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset-frontend/src/components/ThemeEditor/index.tsx b/superset-frontend/src/components/ThemeEditor/index.tsx index a6ccf4df41..c5f955c14a 100644 --- a/superset-frontend/src/components/ThemeEditor/index.tsx +++ b/superset-frontend/src/components/ThemeEditor/index.tsx @@ -90,7 +90,8 @@ const seedTokenCategories = { token: 'colorInfo', type: 'color', help: t( - 'Used to represent the operation information of the Token sequence, such as Alert, Tag, Progress, and other components use these map tokens.', + 'Used to represent the operation information of the Token sequence, such as Alert, ' + + 'Tag, Progress, and other components use these map tokens.', ), }, { @@ -229,6 +230,7 @@ export default function ThemeEditor() { try { const antdTheme = getMergedTheme(); themeObject.setConfig(antdTheme); + setIsModalOpen(false); } catch (e) { console.error('Failed to apply theme overrides:', e); }
