docs(examples/tutorial): update theming tokens to --str-chat__ prefix#3207
Conversation
|
No actionable comments were generated in the recent review. π βΉοΈ Recent review infoβοΈ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: π Files selected for processing (5)
π WalkthroughWalkthroughFive tutorial example CSS files systematically rename custom property declarations from unprefixed/generic names to ChangesCSS Design Token Namespace Migration in Tutorial Examples
Estimated Code Review Effortπ― 1 (Trivial) | β±οΈ ~3 minutes Poem
π₯ Pre-merge checks | β 5β Passed checks (5 passed)
βοΈ Tip: You can configure your own custom pre-merge checks in the settings. β¨ Finishing Touchesπ§ͺ Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Size Change: +8 B (0%) Total Size: 656 kB π¦ View Changed
βΉοΈ View Unchanged
|
Codecov Reportβ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3207 +/- ##
==========================================
- Coverage 83.85% 83.83% -0.02%
==========================================
Files 439 439
Lines 13203 13203
Branches 4280 4280
==========================================
- Hits 11071 11069 -2
- Misses 2132 2134 +2 β View full report in Codecov by Sentry. π New features to boost your workflow:
|
|
π This PR is included in version 14.4.0 π The release is available on: Your semantic-release bot π¦π |
PR #3128 renamed all SDK CSS custom properties with a --str-chat__ prefix immediately after PR #3133 synced the tutorial examples to the semantic token names. Update all five tutorial layout.css files accordingly.
π― Goal
PR #3128 added the
--str-chat__prefix to all SDK CSS custom properties, but the tutorial examples (steps 3β7) were not updated at the same time. As a result, thestream-overrideslayer in each tutorial'slayout.csssets properties that no longer exist, making the custom blue theme have no visible effect.π Implementation details
Renamed all 13 CSS custom properties in the
.custom-themeblock across the five byte-identicallayout.cssfiles (tutorial steps 3β7) to match the current--str-chat__prefix convention (e.g.--chat-bg-outgoingβ--str-chat__chat-bg-outgoing).π¨ UI Changes
CSS-only rename β no visual change intended. The theming was already broken before this fix; after the fix it renders as originally designed (navy outgoing bubbles, light-blue incoming bubbles, pale-blue panel backgrounds).
Summary by CodeRabbit