Closed YayoKB closed 2 weeks ago
Not sure about OmniChannel, but here is how you could do this with vanilla Web Chat: https://stackblitz.com/edit/sb1-ads7jw?file=index.js,components%2FCustomSubmitAction.js
Not sure about OmniChannel, but here is how you could do this with vanilla Web Chat: https://stackblitz.com/edit/sb1-ads7jw?file=index.js,components%2FCustomSubmitAction.js
Hi, thanks for the reply and the resource :) I think that, unfortunately, the solution involves some other middleware that Omnichannel will have to expose for script-layer users. :(
I'd suggest reaching out to OmniChannel team, so they provide feature parity with Web Chat at least on visual customization. Alternatively you could try overriding adaptive cards styles using CSS, but it's not recommended.
I have a question
What I'm using:
adaptiveCardsHostConfig
(but it doesn't cover all the things I need to style)I'm trying to style the adaptive cards and their content (such as the inputs, Action.OpenUrl items, etc.) beyond just basic styling. I want to be able to change the border radius, padding, etc. of these elements.
The most customization I can seem to do easily on adaptive cards' children is inside the
webChatStyles
prop:I know about the middleware, but there are three I've seen on the BotFramework-WebChat repo and have no idea which one to use and how to access it when using Omnichannel:
activityMiddleware
attachmentMiddleware
cardActionMiddleware
Here is my script that contains the
lcw()
function:And here is the script that contains the Omnichannel bundle:
I've already asked this question on Stack Overflow if anyone would rather reply on there. Thank you!