Commit 393ceb5
Charts: Move WPDS font-family host wrapper into the charts story decorator
The previous commit applied the WPDS body font via a decorator and CSS
class in the shared Storybook preview. That worked but put charts-specific
concerns into code shared with every other package's stories.
Move the host-app font-family wrapper into the charts package's own
shared decorator (StoryChartProvider, which backs both chartDecorator
and simpleChartDecorator). Charts stories now render inside a div with
font-family: var(--wpds-font-family-body, system-ui, sans-serif) without
touching the shared storybook preview.jsx or style.scss.
Revert the shared Storybook changes from the previous commit so the
host-app simulation lives entirely in the charts package.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 5e99b6e commit 393ceb5
3 files changed
Lines changed: 21 additions & 27 deletions
File tree
- projects/js-packages
- charts/src/stories
- storybook/storybook
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
168 | 179 | | |
169 | 180 | | |
170 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
72 | 64 | | |
73 | 65 | | |
74 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
0 commit comments