New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom banner header without fontSize breaks top navigation #10140
Comments
Seems like the UI configuration JSON also changed the key from |
@braunsonm I cannot reproduce this in How did you achieve the "setting" of that I had to hack the network request to mimic that and even with that, I couldn't reproduce this. Thanks in advance |
The old, broken, JSON structure is {
"banner": {
"color": "#78c9cf",
"background": "#27292e",
"text": "Hello World!"
},
"showHeader": "true",
"showFooter": "false"
} |
/backport v2.8.next1 |
Workaround details in #10368 (comment) |
Removing the label |
The component unit test covers this and covers this scenario properly cc @yonasberhe23 |
Setup
Describe the bug
In Rancher 2.7.9, if you customized your UI to have a custom header banner, the fontSize is not a required field. This worked fine and it fell back to the default of 14px.
In Rancher 2.8.0,
fontSize
not being set will result in the entire Vue component failing to render, breaking navigation.The error comes from this line: https://github.com/rancher/dashboard/blob/master/shell/components/nav/TopLevelMenu.vue#L79
which will be undefined if the
fontSize
is not set.To Reproduce
Set a custom header banner without a fontSize defined.
Result
Your navigation will no longer render and you will see console errors.
Expected Result
The navbar should work with a fallback default fontSize
The text was updated successfully, but these errors were encountered: