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

suggestedActionBackgroundColorOnHover does not seem to work #5402

Open
slaouist opened this issue Jan 7, 2025 · 1 comment
Open

suggestedActionBackgroundColorOnHover does not seem to work #5402

slaouist opened this issue Jan 7, 2025 · 1 comment
Assignees
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

@slaouist
Copy link

slaouist commented Jan 7, 2025

Is it an issue related to Adaptive Cards?

No response

Is this an accessibility issue?

No response

What version of Web Chat are you using?

Latest production

Which distribution are you using Web Chat from?

Bundle (webchat.js)

Which hosting environment does this issue primarily affect?

Web apps

Which browsers and platforms do the issue happened?

No response

Which area does this issue affect?

No response

Which theme pack does this issue affect?

I did not test it on other theme packs

What is the public URL for the website?

No response

Please describe the bug

when changing this style: suggestedActionBackgroundColorOnHover, we don't see it reflected in the control.

Do you see any errors in console log?

How to reproduce the issue?

  1. Navigate to ...
  2. Click on ...
  3. Type "..." in the send box

What do you expect?

suggestedActionBackgroundColorOnHover should update the hover color.

What actually happened?

updating suggestedActionBackgroundColorOnHover does not get reflected in the control.

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

No response

Adaptive Card JSON

Additional context

No response

@slaouist slaouist 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
@stevkan stevkan self-assigned this Jan 9, 2025
@stevkan
Copy link
Collaborator

stevkan commented Jan 9, 2025

@slaouist - Unfortunately, I am not able to reproduce the issue as it appears to be working for me. Can you post or attach a code sample that produces the issue so that I may test with it, if it's still occurring?

In short, your code should look something like the below. Using #379392 produces a sort of ocean green color. In the pic, I am hovering over the third suggested action.

const styleOptions = {
    suggestedActionBackgroundColorOnHover: '#379392'
    // Or, simply
    suggestedActionBackgroundColorOnHover: 'green'
}

window.WebChat.renderWebChat(
    {
        directLine: directLine,
        styleOptions: styleOptions
    }
)

Image

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