Commit 76931bf
fix(s2-docs): auto-scroll and expand section for group selected nav link (adobe#9664)
* fix(s2-docs): auto-scroll and expand section for group selected nav link
* refactor(s2-docs): utilize scrollIntoViewport with added behavior and alignment options
* refactor(s2-docs): remove redundant type annotation and verbose boolean comparison
* fix: remove behavior option
* go back to native scroll into view
---------
Co-authored-by: Robert Snow <snowystinger@gmail.com>1 parent fde2a81 commit 76931bf
File tree
1 file changed
+14
-4
lines changed- packages/dev/s2-docs/src
1 file changed
+14
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
191 | | - | |
| 191 | + | |
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
258 | | - | |
| 258 | + | |
259 | 259 | | |
260 | 260 | | |
261 | | - | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
262 | 271 | | |
263 | 272 | | |
264 | 273 | | |
| |||
283 | 292 | | |
284 | 293 | | |
285 | 294 | | |
286 | | - | |
| 295 | + | |
| 296 | + | |
287 | 297 | | |
288 | 298 | | |
289 | 299 | | |
| |||
0 commit comments