Skip to content

Commit d434c5b

Browse files
committed
docs: Create update guide for theme-v4
1 parent 2fdb9a3 commit d434c5b

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
id: upgrade-v3
3+
title: Upgrade from v3
4+
---
5+
6+
## About version 4
7+
8+
Version 4 of stream-chat-angular brings a new and improved theming system. To use the new system please refer to our new [theming guide](../theming/introduction.mdx).
9+
10+
## Theme-v1
11+
12+
The old theme can still be used with the latest SDK versions however, you might need to update your custom CSS as some changes were introduced to theme-v1.
13+
14+
Theme-v1 is now deprecated and will be removed in a future release.
15+
16+
## Theard layout
17+
18+
Previously you had to provide a selector for the message list and message input component projected inside the [thread component](../components/ThreadComponent.mdx).
19+
20+
```html
21+
<stream-thread name="thread">
22+
<stream-message-list
23+
name="thread-message-list"
24+
mode="thread"
25+
></stream-message-list>
26+
<stream-message-input
27+
mode="thread"
28+
name="thread-message-input"
29+
></stream-message-input>
30+
</stream-thread>
31+
```
32+
33+
You don't need to provide those selectors anymore, anything inside the content part of `stream-thread` HTML element will be projected inside the thread component:
34+
35+
```html
36+
<stream-thread name="thread">
37+
<stream-message-list mode="thread"></stream-message-list>
38+
<stream-message-input mode="thread"></stream-message-input>
39+
</stream-thread>
40+
```
41+
42+
Providing the selector won't cause a problem, but it's unnecessary.
43+
44+
## `device-width` module was removed
45+
46+
The `device-width` utility module was removed. If you rely on this code inside your chat application, you'll have to update your code.

0 commit comments

Comments
 (0)