You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Navigate to Cluster Management
Click on Create and select an RKE2 cluster
Fill out the required fields for creating an RKE2 cluster
Click on Cluster Appearance => Customize
Enable Badge background color and select a background color for the cluster
Create the cluster
Click on "Edit YAML" for the newly created cluster
Modify ui.rancher/badge-color so that it contains trailing whitespace (e.g ui.rancher/badge-color: '#1a5fb4 '
Save the changes
Expected behavior
No errors in the console and primary navigation renders
Actual behavior
Error is printed to the console
Error: Unable to parse color from string: #1a5fb4
Color index.js:49
Color index.js:24
parseColor color.js:85
get badge management.cattle.io.cluster.js:315
get reactivity.esm-bundler.js:492
clusters TopLevelMenu.vue:107
clusters TopLevelMenu.vue:98
Primary navigation fails to render
Screenshots
The text was updated successfully, but these errors were encountered:
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: