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:
- Add the following code:
<Text theme={Themes.sap_fiori_3}>Hello World</Text>
- 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
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:
<Text theme={Themes.sap_fiori_3}>Hello World</Text>Expected behavior
The passed theme takes precedence over the ThemeProvider.
UI5 Web Components for React Information
Operating System: macOS Catalina
@ui5/webcomponents-reactversion: ^0.9.3Do you have a dependency to
@ui5/webcomponentsin your package.json? If yes, which version?: ^1.0.0-rc.7