Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FluentThemeProvider is not respecting some of the style options #5401

Open
patilravikiran opened this issue Jan 7, 2025 · 1 comment
Open
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@patilravikiran
Copy link

Is it an issue related to Adaptive Cards?

No

Is this an accessibility issue?

No

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

NPM

Which hosting environment does this issue primarily affect?

PowerApps

Which browsers and platforms do the issue happened?

Others or unrelated

Which area does this issue affect?

Others or unrelated

Which theme pack does this issue affect?

Fluent UI

What is the public URL for the website?

No response

Please describe the bug

Hi Team,

Whenever I wrap ReactWebChat within FluentThemeProvider component, accent style option is not getting applied. Please check below image files for reference.

With FluentThemeProvider
Image

Without FluentThemeProvider
Image

Code:
<FluentThemeProvider> <ReactWebChat directLine={directLine} styleOptions={JSON.parse(styleOptions)} /> </FluentThemeProvider>

Do you see any errors in console log?

No related errors.

How to reproduce the issue?

Code to reproduce this issue. Please add few options to your bot similar to screenshots pasted while describing the bug.
<FluentThemeProvider> <ReactWebChat directLine={directLine} styleOptions={JSON.parse(styleOptions)} /> </FluentThemeProvider>

What do you expect?

The accent style option should get applied.

What actually happened?

The bot has not respected accent style option.

Do you have any screenshots or recordings to repro the issue?

Added above.

Adaptive Card JSON

Additional context

No response

@patilravikiran patilravikiran added Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete. labels Jan 7, 2025
@OEvgeny
Copy link
Collaborator

OEvgeny commented Jan 7, 2025

This is known/expected as the package makes changes which conflict with default Web Chat ones. See theme.module.css for possible adjustments using CSS variables.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

2 participants