ytihianine commented on issue #36940:
URL: https://github.com/apache/superset/issues/36940#issuecomment-4754847619
Hey, starting from Superset 6.1, it seems like you must set
`"brandLogoHref": "/"` else you get an infinite whitescreen.
This theme produces a whitescreen (`THEME_DEFAULT` from `config.py` file,
just commenting `brandLogoHref` key - but it works on 6.0, not for 6.1)
```
THEME_DEFAULT: Theme = {
"token": {
# Brand
# Application name for window titles
"brandAppName": "Superset",
"brandLogoAlt": "Apache Superset",
"brandLogoUrl": "/static/assets/images/superset-logo-horiz.png",
"brandLogoMargin": "18px 0",
# "brandLogoHref": "/",
"brandLogoHeight": "24px",
# Spinner
"brandSpinnerUrl": None,
"brandSpinnerSvg": None,
# Default colors
"colorPrimary": "#2893B3", # NOTE: previous lighter primary color
was #20a7c9 # noqa: E501
"colorLink": "#2893B3",
"colorError": "#e04355",
"colorWarning": "#fcc700",
"colorSuccess": "#5ac189",
"colorInfo": "#66bcfe",
# Fonts
"fontUrls": [],
"fontFamily": "Inter, Helvetica, Arial, sans-serif",
"fontFamilyCode": "'IBM Plex Mono', 'Courier New', monospace",
# Extra tokens
"transitionTiming": 0.3,
"brandIconMaxWidth": 37,
"fontSizeXS": "8",
"fontSizeXXL": "28",
"fontWeightNormal": "400",
"fontWeightLight": "300",
"fontWeightStrong": "500",
"fontWeightBold": "700",
# Editor selection color (for SQL Lab text highlighting)
"colorEditorSelection": "#fff5cf",
},
"algorithm": "default",
}
```
This one works (uncommenting `brandLogoHref` key)
THEME_DEFAULT: Theme = {
"token": {
# Brand
# Application name for window titles
"brandAppName": "Superset",
"brandLogoAlt": "Apache Superset",
"brandLogoUrl": "/static/assets/images/superset-logo-horiz.png",
"brandLogoMargin": "18px 0",
"brandLogoHref": "/",
"brandLogoHeight": "24px",
# Spinner
"brandSpinnerUrl": None,
"brandSpinnerSvg": None,
# Default colors
"colorPrimary": "#2893B3", # NOTE: previous lighter primary color
was #20a7c9 # noqa: E501
"colorLink": "#2893B3",
"colorError": "#e04355",
"colorWarning": "#fcc700",
"colorSuccess": "#5ac189",
"colorInfo": "#66bcfe",
# Fonts
"fontUrls": [],
"fontFamily": "Inter, Helvetica, Arial, sans-serif",
"fontFamilyCode": "'IBM Plex Mono', 'Courier New', monospace",
# Extra tokens
"transitionTiming": 0.3,
"brandIconMaxWidth": 37,
"fontSizeXS": "8",
"fontSizeXXL": "28",
"fontWeightNormal": "400",
"fontWeightLight": "300",
"fontWeightStrong": "500",
"fontWeightBold": "700",
# Editor selection color (for SQL Lab text highlighting)
"colorEditorSelection": "#fff5cf",
},
"algorithm": "default",
}
If it happens to be the real issue, maybe a fallback value should be set to
ensure this key is always present ?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]