Skip to content

Text: theme parameter has no effect #490

Description

@petejohnson84

Describe the bug
Using the Text component, the theme parameter has no effect. The theme is set to dark mode, so the text is white. When adding the theme parameter and specifying sap_fiori_3, I would expect the text to become non-white, as it should not respect the dark mode theme.

To Reproduce
Steps to reproduce the behavior:

  1. Add the following code:
    <Text theme={Themes.sap_fiori_3}>Hello World</Text>
  2. Change the theme being applied, note the text will always respect the applied theme rather than the theme supplied by the parameter. I also tried the hard-coded string 'sap_fiori_3' which did not work either.

Expected behavior
The passed theme takes precedence over the ThemeProvider.

UI5 Web Components for React Information
Operating System: macOS Catalina
@ui5/webcomponents-react version: ^0.9.3
Do you have a dependency to@ui5/webcomponents in your package.json? If yes, which version?: ^1.0.0-rc.7

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions