- 
                Notifications
    You must be signed in to change notification settings 
- Fork 7.5k
Change toolbar background color from IFrame API #16468 fixed #16585
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
base: master
Are you sure you want to change the base?
Conversation
| Hi, thanks for your contribution! | 
| There is no point of having a special command for this when you can use overwriteConfig command or you can pass it as a configOverwrite when initializing the iframAPI. Line 895 in 57865d7 
 When adding a config, that should be implemented for both web and mobile. Drop the not relevant changes as the gitignore one. | 
| Got it, thanks for the clarification! | 
…igOverwrite for web and mobile
| Updated the implementation to use  | 
        
          
                config.js
              
                Outdated
          
        
      | // autoHideWhileChatIsOpen: false, | ||
| // }, | ||
| // Holds values related to toolbar visibility control. | ||
| toolbarConfig: { | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't uncomment this, leave it commented out, reflecting the defaults.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing that out! I’ve fixed it- it’s now left commented out as per the defaults.
        
          
                config.js
              
                Outdated
          
        
      | // // Indicates whether the toolbar should still autohide when chat is open | ||
| // autoHideWhileChatIsOpen: false, | ||
| // // Default background color for the main toolbar. Accepts any valid CSS color. | ||
| // // backgroundColor: '#ffffff' | 
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a trailing comma please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I have added the trailing comma as suggested
📝 Description:
This PR adds support for dynamically setting the toolbar background color through the IFrame API, improving customizability for embedded integrations.
🚀 Changes Introduced: