Commit 7c3c46c
Content Guidelines AI: fix remaining renamed-Gutenberg references
Two more leftovers from the Gutenberg content-guidelines -> guidelines
rename, outside inject.js so missed by #49155:
- suggestion-actions.jsx looked up the per-section form by the removed
id `content-guidelines-${slug}`, so the effect bailed early: the
original text was never captured for the diff and the form's
has-jetpack-suggestion / is-jetpack-loading classes were never toggled
(the underlying textarea stayed visible behind the suggestion). Switch
to the stable `.guidelines__list-item[data-slug]` -> form lookup used
by inject.js.
- style.scss targeted the removed `.content-guidelines__accordion-trigger`
class to hide the badge when a section is expanded. The badge is now
injected inside the CollapsibleCard trigger, which carries
aria-expanded, so target `[aria-expanded="true"]` instead.
Both verified against the live page: the form resolves via data-slug and
the badge-hide selector matches only when the section is expanded.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 60edab7 commit 7c3c46c
2 files changed
Lines changed: 6 additions & 6 deletions
File tree
- projects/plugins/jetpack/_inc/content-guidelines-ai
- components
Lines changed: 2 additions & 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 | 30 | | |
| |||
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| |||
0 commit comments