GitHub user dosubot[bot] added a comment to the discussion: Changing
LOGO_TARGET_PATH adds a 'Home' menu
<!-- Answer -->
To apply custom CSS globally across all pages in Superset, you can modify the
`GlobalStyles` component in the `superset-frontend/src/GlobalStyles.tsx` file.
This component uses the `Global` component from `@emotion/react` to inject
global styles. You can add your custom CSS within the `styles` prop of the
`Global` component. Here is an example:
```javascript
import { css } from '@superset-ui/core';
import { Global } from '@emotion/react';
export const GlobalStyles = () => (
<Global
styles={theme => css`
/* Existing styles */
/* Add your custom global styles here */
.ant-menu > .ant-menu-item:first-child {
display: none;
}
/* More custom styles */
`}
/>
);
```
By adding your custom styles within the `styles` prop, they will be applied
globally across all pages in Superset
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/GlobalStyles.tsx)</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/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/31d9af33-488c-4a7e-9461-f82c8639fb06?feedback_type=other)</sup>
GitHub link:
https://github.com/apache/superset/discussions/33295#discussioncomment-12989770
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]