Commit 2127ef8
committed
Add Navigation block toolbar buttons to Template Part editor
- Add 'Edit navigation' button when template part contains Navigation blocks
- Button selects the first Navigation block and opens inspector
- Remove contentOnly mode restriction - buttons work in all modes
- Prevent double-click navigation when editing Navigation blocks
- Add visual separation between toolbar button groups
Extracted from PR #71137 with contentOnly restrictions removed.1 parent 4ee682c commit 2127ef8
File tree
2 files changed
+36
-13
lines changed- packages/block-library/src/template-part/edit
2 files changed
+36
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | | - | |
136 | 135 | | |
137 | 136 | | |
138 | 137 | | |
| |||
187 | 186 | | |
188 | 187 | | |
189 | 188 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | 189 | | |
195 | 190 | | |
196 | 191 | | |
| |||
205 | 200 | | |
206 | 201 | | |
207 | 202 | | |
208 | | - | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
| |||
303 | 297 | | |
304 | 298 | | |
305 | 299 | | |
306 | | - | |
| 300 | + | |
307 | 301 | | |
308 | 302 | | |
309 | 303 | | |
| |||
Lines changed: 35 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
| |||
123 | 149 | | |
124 | 150 | | |
125 | 151 | | |
126 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
127 | 155 | | |
128 | | - | |
| 156 | + | |
129 | 157 | | |
130 | 158 | | |
131 | 159 | | |
132 | | - | |
| 160 | + | |
| 161 | + | |
133 | 162 | | |
134 | 163 | | |
135 | 164 | | |
| |||
0 commit comments