Drop most font icon references#2687
Conversation
WalkthroughThe pull request removes most icon font glyph mappings from the SCSS source file while preserving the tooltip icon rule and reintroducing the delete icon mapping. Corresponding CSS declarations are added to define the tooltip and delete icon content values explicitly. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
resources/scss/font_icons.scss (1)
76-81: Inconsistent use of!importantbetween icon rules.The
.frm_tooltip_icon::beforerule (line 77) omits!important, while.frm_delete_icon::before(line 81) includes it. If the!importantis needed on the delete icon to override a specific conflicting rule, consider adding a brief comment explaining why. Otherwise, for consistency, either add!importantto the tooltip icon or remove it from the delete icon.
📜 Review details
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (3)
css/font_icons.csscss/frm_admin.cssresources/scss/font_icons.scss
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (6)
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: PHP 8 tests in WP trunk
- GitHub Check: Cypress
- GitHub Check: PHP 8 tests in WP trunk
- GitHub Check: PHP 7.4 tests in WP trunk
- GitHub Check: Cypress
🔇 Additional comments (1)
css/font_icons.css (1)
1-1: LGTM!The compiled CSS correctly reflects the SCSS source changes, with both
.frm_tooltip_icon::beforeand.frm_delete_icon::beforerules properly included.
Drop most font icon references
I kept 2 for now that are likely still in circulation:
frm_delete_iconandfrm_tooltip_icon. There is also other code still supportingfrm_add_tagandfrm_remove_tagthat is still being used that is kept.The rest shouldn't be in use anymore. If any are, hopefully this update will help detect those.
This update helps remove about 10kb from the
frm_admin.cssfile.If we keep the
wofffile alone for now, it should be easy to patch any issues with some quick css.