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

Issues while editing Adaptive cards css(button orientation,title color) in React.js #3104

Closed
thomas023 opened this issue Apr 16, 2020 · 4 comments
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.

Comments

@thomas023
Copy link

thomas023 commented Apr 16, 2020

I'm creating a Bot application using React js and botframework-webchat. I want to change the title color and button orientation of adaptive cards. But i'm unable to do so. Since every title in adaptive cards is classified into a common class called p, and button orientation is also not changing. Heard that i could try it using adaptive card hostconfig in npm but its not working.

botframework-webchat version : 4.7.1
React version : 6.14.4

@thomas023 thomas023 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 Apr 16, 2020
@v-kydela
Copy link

v-kydela commented Apr 16, 2020

Hi @thomas023

When you say button orientation, do you mean you want the buttons to display horizontally? Did you follow the instructions here? #2034

I also found a more recent post that implies that you don't need to provide a whole new host config, and it seems to work: https://stackoverflow.com/questions/59382809/adaptivecards-hostconfig-integration

@thomas023
Copy link
Author

Hi @v-kydela Yes I want to change the placement of button from vertical to horizontal. And change the color of the Title text.

@v-kydela
Copy link

@thomas023 - Did you follow the instructions?

@v-kydela v-kydela self-assigned this Apr 16, 2020
@v-kydela v-kydela added customer-replied-to Required for internal reporting. Do not delete. and removed bug Indicates an unexpected problem or an unintended behavior. labels Apr 16, 2020
@compulim
Copy link
Contributor

  1. Changing action orientation, https://docs.microsoft.com/en-us/adaptive-cards/rendering-cards/host-config#actionsconfig
  2. I am unsure which host config rule to use, please look at the host config documentation to see

Changing action orientation

image

@thomas023 thomas023 changed the title Not able to edit Adaptive cards css(button orientation,title color) in React.js Issues while editing Adaptive cards css(button orientation,title color) in React.js Apr 20, 2020
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. customer-replied-to Required for internal reporting. Do not delete. customer-reported Required for internal Azure reporting. Do not delete.
Projects
None yet
Development

No branches or pull requests

3 participants