Commit 8859e97
authored
[Interactive Graph] Update the axis labels to be TeX by default again (#3028)
## Summary:
It looks like these are defaulting to `x` and `y` instead of `$x$` and `$y$`.
Changing them to be `$x$` and `$y$` as requested by content authors.
Issue: none
Test plan:
`pnpm jest packages/perseus/src/widgets/interactive-graphs/serialize-interactive-graph.test.ts`
Storybook
- Go to `/?path=/story/editors-editorpage--demo`
- Add a new interactive graph
- Scroll to the common settings
- Confirm that the axis labels are `$x$` and `$y$`
| Before | After |
| --- | --- |
| <img width="376" height="283" alt="Screenshot 2025-11-12 at 11 45 40 AM" src="https://github.com/user-attachments/assets/5b194b25-5857-4a80-ba85-026f52b6ccb6" /> | <img width="377" height="278" alt="Screenshot 2025-11-12 at 11 45 44 AM" src="https://github.com/user-attachments/assets/dfe844cc-3e10-46b0-98b1-61141d9a4189" /> |
Author: nishasy
Reviewers: mark-fitzgerald
Required Reviewers:
Approved By: mark-fitzgerald
Checks: ⏹️ 7 checks were cancelled, ✅ 3 checks were successful
Pull Request URL: #30281 parent 1354351 commit 8859e97
File tree
5 files changed
+11
-5
lines changed- .changeset
- packages
- perseus-core/src
- parse-perseus-json/regression-tests/__snapshots__
- widgets/interactive-graph
- perseus/src/widgets/interactive-graphs
5 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9733 | 9733 | | |
9734 | 9734 | | |
9735 | 9735 | | |
9736 | | - | |
9737 | | - | |
| 9736 | + | |
| 9737 | + | |
9738 | 9738 | | |
9739 | 9739 | | |
9740 | 9740 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
0 commit comments