refactor: New Icon system with Enhanced Antd Custom Icon#12229
Conversation
Codecov Report
@@ Coverage Diff @@
## master #12229 +/- ##
===========================================
- Coverage 72.29% 58.17% -14.13%
===========================================
Files 864 481 -383
Lines 44883 16120 -28763
Branches 5403 4124 -1279
===========================================
- Hits 32450 9378 -23072
+ Misses 12224 6742 -5482
+ Partials 209 0 -209
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
|
Tested manually across browsers and looks fine 🟢 |
|
For transparency, Diego and I spoke online, and we agreed to put this in Draft mode while exploring a couple options: • Re-exporting vanilla AntD icons from the Superset Icon component, so we can get ALL icons from one import. |
rusackas
left a comment
There was a problem hiding this comment.
LGTM! This is a huge step forward! Will pull the branch and do a little more functional testing again before merging
|
This looks like it's ready to go, pending a teensy |
villebro
left a comment
There was a problem hiding this comment.
One minor nit - other than that LGTM and worked perfectly in my testing.
Indeed! This is built specifically for that, so we can effectively extend/override the AntD icon set, rather than having custom icons that are a bit of an interface mismatch from the AntD icons we'd use elsewhere. In fact, plans are underway to revamp our custom icons in the design system to better match the layout/sizing of the AntD icons. We'll get them all to play nicely together. |
* Enhance custom icon * Minor fix * Move DashboardList icon trash icon to enhanced * Enhance trash icon on lists * Enhance actions icons card view * Add storybook entry for custom icons * Test delete button * Remove commented line * Fix linting issue * Enhance Antd icons * Enhance existing icons up to BoltSmallRunIcon * Remove unused import * Import/Exports all icons from index * Export all existing icons * Implement more enhanced icons * Add data-id on edit buttons * Fix lint issue * Inherit color * Apply original color to actions * Fix linting issue * Fix typo * Change ModeHoriz to MoreHoriz
* Enhance custom icon * Minor fix * Move DashboardList icon trash icon to enhanced * Enhance trash icon on lists * Enhance actions icons card view * Add storybook entry for custom icons * Test delete button * Remove commented line * Fix linting issue * Enhance Antd icons * Enhance existing icons up to BoltSmallRunIcon * Remove unused import * Import/Exports all icons from index * Export all existing icons * Implement more enhanced icons * Add data-id on edit buttons * Fix lint issue * Inherit color * Apply original color to actions * Fix linting issue * Fix typo * Change ModeHoriz to MoreHoriz
SUMMARY
This PR introduces an entirely new Icon system that uses a combination of the Antd Custom Icon and Emotion while consolidating the usage of icons.
As an example implementation, the following sections have been changed to use some of the icons under the new icon system:
BEFORE
AFTER
TEST PLAN
ADDITIONAL INFORMATION