chore: replace nrk-coreicons with fontawesome#1634
chore: replace nrk-coreicons with fontawesome#1634Julusian wants to merge 1 commit intoSofie-Automation:mainfrom
Conversation
WalkthroughThis pull request removes the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Important Action Needed: IP Allowlist UpdateIf your organization protects your Git platform with IP whitelisting, please add the new CodeRabbit IP address to your allowlist:
Reviews will stop working after February 8, 2026 if the new IP is not added to your allowlist. 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
About the Contributor
This pull request is posted on behalf of Superfly
Type of Contribution
This is a: Code improvement
New Behavior
We are using the
@nrk/core-iconsnpm library for a couple of icons. We are also using fontawesome for a majority of the icons.Additionally, the version of
@nrk/core-iconswe were using v9 is rather out of date, which adds noise toyarn upgrade-interactive.Instead, this swaps out the couple of icons for fontawesome.
An example:


Before:
After:
I don't know if pixel perfect precision in the size/position is important here/elsewhere, so have not tried to enforce that for now.
Alternatives
If this is not liked, then we could update and continue to use the library.
It feels cleaner to me to use one library for icons, but UX may disagree
Testing
Affected areas
Time Frame
Other Information
Status
Consolidates icon library by replacing nrk-coreicons with FontAwesome
Replaces usage of the
@nrk/core-iconsnpm library with Font Awesome across the webui package, eliminating a small set of duplicate icons and reducing dependency complexity.Changes Made
Dependencies:
@nrk/core-iconsdependency frompackages/webui/package.jsonIcon Replacements:
Replaced 5 instances of NRK core icons with Font Awesome equivalents across the following files:
ModalDialog.tsx:NRkClose→FontAwesomeIcon(close, size="xl")NotificationCenterPanel.tsx:NrkArrowLeftandNrkClose→FontAwesomeIcon(arrow-left, close)Modal.tsx:NrkClose→FontAwesomeIcon(close, size="xl")RundownHeader.tsx:NrkClose→FontAwesomeIcon(close, size="xl")PropertiesPanel.tsx:NrkClose→FontAwesomeIcon(close, size="lg")All icon replacements updated the corresponding imports from CoreIcons to FontAwesomeIcon. The functional behavior of the close buttons and navigation icons remains unchanged; only the visual rendering and underlying component implementation are updated.
Notes
No pixel-perfect matching was attempted for size/position differences between the icon libraries. Event handling and control flow remain unaffected by these changes. No unit test modifications were required.