dosubot[bot] commented on issue #32357: URL: https://github.com/apache/superset/issues/32357#issuecomment-2677095674
<!-- Greeting --> Hey there, @Gilks! I'm here to assist with any bugs, questions, and help you become a contributor. Let's tackle this together! 🤖 <!-- Answer --> I found a similar unsolved discussion titled [Embedded dashboard does not use parent document preferred color scheme](https://github.com/apache/superset/discussions/23534) which might be relevant to your situation <sup>[[1]](https://github.com/apache/superset/discussions/23534)</sup>. Regarding your question, the Superset embedding API does support passing custom UI configuration options when initializing a dashboard, as indicated by a change log entry that mentions adding optional dashboard UI configuration <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/CHANGELOG.md)</sup>. However, there is no specific mention of passing custom CSS directly through the API. For injecting custom CSS into dashboards, Superset provides a mechanism through the `injectCustomCss` function. This function allows you to apply custom CSS to dashboards by creating a `<style>` element and appending it to the document's `<head>`. This approach can be used to dynamically manage styles, although it might require some additional handling to work with embedded dashboards <sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/Header/useHeaderActionsDropdownMenu.tsx)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/util/injectCustomCss.ts)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/1e4fdae3-7422-4774-9967-6486db1db2dc?feedback_type=other)</sup> -- 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]
