-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add Backgroundcolor for SendBoxButton to defaultStyleOptions #3038
Comments
@compulim can you please take a look on this issue? thanks. |
@congysu You can currently accomplish this by overriding the @compulim @corinagum @cwhitten What are your thoughts on adding Web Chat v4const styleSet = window.WebChat.createStyleSet();
styleSet.sendBoxButton = {
...styleSet.sendBoxButton,
backgroundColor: 'aqua',
};
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine({ token }),
styleSet,
},
document.getElementById('webchat')
); Screenshot |
@tdurnford I don't see a problem adding this style option |
Thank you for your reply! Our UX Designer also requested to have a change in the send button when hovering. |
I'd recommend the idosyncratic manual styling - it is the least likely to break of the two options. |
Thanks! |
We are also interested in style options for the sendboxbutton background and on hover effect. Besides we were wondering if an option like sendboximage can be added for full user experience customization |
@CHuijsman This customization is available by creating your own sendboxbutton component. Please take a look at customizing the UI. |
@corinagum None of the examples specify how to pass a custom renderer. I've been digging through some javascript files in the NPM packages to try to find out how this would be possible ( Am I missing something or is it not possible without forking the repo? |
#3526 (comment) Listed in our FAQ Our custom components samples also teach how to use middleware https://github.com/microsoft/BotFramework-WebChat/tree/master/samples/05.custom-components/c.user-highlighting |
Feature Request
My requirement is to set the BackgroundColor of the sendBoxButton.
Currently, the defaultStyleOptions.js does not support this and i had to fall back to using css selectors.
defaultStyleOptions.js seems to be the natural place for this.
Current solution:
#webchat > div > div > div.main > div > button{ background-color: aqua; }
Desired solution:
const styleOptions = { sendBoxButtonsendBoxBackgroundColor: "aqua" };
The text was updated successfully, but these errors were encountered: