Commit 0cac304
fix(plugin): restore menu__list-item--deprecated class on sidebar items
The MDX front matter template emitted `sidebar_class_name` without the
deprecated modifier. Under Docusaurus 3.10+ (bundled with v5.0.0), front
matter takes precedence over sidebar item className, clobbering the
deprecated class set by the sidebar generator. Conditionally append the
class in the template so it survives the precedence change.
Closes #1417
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent f68cf21 commit 0cac304
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
223 | 223 | | |
224 | 224 | | |
225 | 225 | | |
226 | | - | |
| 226 | + | |
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
| |||
0 commit comments