Skip to content

Detect usage of a hard coded theme declaration in a UI5 bootstrap script #962

Description

@flovogt

With UI5/openui5@01e9de7 UI5 offers a fallback and default theme mechanism.
Therefore, the best practice is to no longer configure the desired theme in the UI5 boot configuration but let UI5 or an including service (e.g. sap.ushell) decide about the theme to load.

Outdated usage

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="resources/sap-ui-core.js"
    data-sap-ui-theme="sap_horizon">
</script>

Recommended usage

<script id="sap-ui-bootstrap"
    type="text/javascript"
    src="resources/sap-ui-core.js">
</script>

Activity

  1. self-assigned this
    on Dec 29, 2025
  2. added theissue type on Dec 29, 2025
  3. added
    detectionAn issue related to detection capabilities
    on Dec 29, 2025
  4. flovogt commented on Dec 29, 2025

    @flovogt
    MemberAuthor

    JIRA: CPOUI5FOUNDATION-1192

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

detectionAn issue related to detection capabilities

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions