[backport v2.8.10] Primary nav fails to render with trailing space in cluster badge color #12395
Labels
JIRA
kind/bug
QA/manual-test
Indicates issue requires manually testing
QA/None
status/backport-candidate
Milestone
This is a backport issue for #12272, automatically created via GitHub Actions workflow initiated by @nwmac
Original issue body:
The primary navigation bar in Rancher Dashboard fails to render if a space is entered for a custom badge color for a cluster.
Steps to reproduce
ui.rancher/badge-color
so that it contains trailing whitespace (e.gui.rancher/badge-color: '#1a5fb4 '
Expected behavior
No errors in the console and primary navigation renders
Actual behavior
Error is printed to the console
Primary navigation fails to render
Screenshots
The text was updated successfully, but these errors were encountered: