Control the style of absolutely anything with CSS overrides, and more
Highlight
Control the style of absolutely anything with CSS overrides
You can now style absolutely any aspect of your TalkJS UI, using the global CSS overrides tab in your theme editor.
Global CSS overrides complement the ability to edit and style chat components. A vast number of parts of the TalkJS UI are currently exposed as components that you can edit directly in your theme editor. However, if that’s not enough, the global CSS overrides tab gives you full control to customize your chat UI.
For example, with a global CSS overrides you can customize the background of a chat panel however you like, such as by setting an image as the background:
.Panel { background-image:url('https://example.com/image.jpg'); background-size:cover; }
With the following result:
Chat UI with an image set as the background of a chat panel
Using global CSS overrides, you could for instance also hide the day marker that separates messages sent on different days, by setting DayMarker
to display: none
:
.DayMarker { display: none; }
The difference between showing and hiding the day marker would be as follows:
Chat UI with and without a day marker
You can find the global CSS override tab in the Themes section of your dashboard when editing a theme.
Global CSS override the the theme editor of the dashboard
Any CSS styles added to the global CSS overrides section of the theme editor get applied globally, to all parts of the TalkJS UI. To add a style only to a specific component, update that component directly in your theme editor.
For more information, see: Global CSS overrides.
Overview of other changes
Added
- Added support for rich text shortcodes in the message editor.
Ctrl-B
(on Windows) orCmd-B
(on MacOS) now adds markup for bold text, whileCtrl-I
orCmd-I
adds markup for italics. - React SDK (version 0.1.7): Added a
show
prop toPopup
, that allows you to specify whether the pop-up widget pre-built chat UI should be shown or hidden. - React Native SDK (version 0.8.0): Added support for push notifications via Firebase on iOS. Note: For push notifications to iOS on Expo, we currently only support using Firebase, not APNs.
- React Native SDK (version 0.8.0): Added
onMessage
andonUnreadsChange
props to the Session component. - React Native SDK (version 0.8.0): Added
hasValidCredentials
,clearPushRegistration
,setPushRegistation
andunsetPushRegistration
methods to the Session component. - Flutter SDK (version 0.10.0): Added support for Firebase push notifications on iOS.
- Flutter SDK (version 0.10.0): Added compound predicates to
Chatbox
andConversationList
. - Flutter SDK (version 0.10.0): Added a missing
themeOptions
property inConversationList
.
Changed
- React Native SDK (version 0.8.0) Removed an implicit push notification permissions request. Users of this library must explicitly request for push notification permissions on iOS and Android 13+.
- React Native SDK (version 0.8.0): Removed bounce in iOS when the UI reached the edge of the content.
- React Native SDK (version 0.8.0): Renamed the
AndroidChannel
interface toAndroidSettings
, and theIOSPermissions
interface toIOSSettings
. - React Native SDK (version 0.8.1): The
ConversationList
no longer highlights the first conversation by default.
Fixed
- Fixed an issue where a group chat with only guests wouldn’t show usernames alongside messages in the default preset themes.
- Fixed an issue where external links would open inside an app even when Cordova InAppBrowser is used.
- Flutter SDK (version 0.10.0): Fixed a push notification error when a sender's
photoUrl
is invalid. - Flutter SDK (version 0.10.0): Fixed a build issue on Android Gradle Plugin (AGP) 8.0+.
- React Native SDK (version 0.8.0): Fixed bug in
Session
when user synchronization is disabled. - React Native SDK (version 0.8.0): Fixed bug with
MessageField.setText
andMessageField.typeText
that would cause a crash when given certain strings. - React Native SDK (version 0.8.0): Fixed bug where, under certain conditions, the
HTMLPanel
wouldn’t load.
New guides and tutorials
- How to set up the Inbox UI mode as a pop-up
- How to create a poll in TalkJS
- Integrate chat into your Bildr webapp with TalkJS
- Integrate chat into a Webflow site with TalkJS
👋 Thoughts? Questions? Get in touch.
✨Follow TalkJS on 𝕏 and LinkedIn to stay up to date.
👩🏾💻We’re hiring! Check out our jobs page.