refactor(ui): replace native HTML elements with Ant Design 5 components for consistent theming #33231
+97
−52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
The goal of this PR is to replace all remaining native HTML elements within the
superset-frontend/src
,superset-frontend/plugins
, andsuperset-frontend/packages
directories with their corresponding Ant Design 5 components.This change is being made to ensure that theming colors are applied consistently across all components in the project.
By replacing native HTML elements like
<input>
,<table>
,<button>
,<li>
, and<h3>
/<h4>
tags with Ant Design 5 components such asInput
,Button
,Typography.Title,
andList.Item
, we can guarantee that the Ant Design theming system works as expected.Specifically, this will:
Ensure consistent application of theming 🎨 (colors, fonts, spacing) across the UI.
Improve maintainability by aligning the entire codebase with the Ant Design 5 component system 🔧.
Ensure better responsiveness, theming, and accessibility 🌍 through the Ant Design 5 system.
Facilitate future UI enhancements, as the project will be fully based on Ant Design 5 components, making it easier to integrate new features or updates from the design system 🚀.
This PR can be considered a continuation of #33090, further extending the standardization and theming improvements across the project.
After this change, the theming colors and styles will work uniformly across all components, providing a consistent look and feel throughout the application.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION