Commit 4fe0a9f
authored
Fix/8839 toc anchor mobile issue (#12305)
### Related Ticket(s)
Closes https://jsw.ibm.com/browse/ADCMS-8839
### Description
In mobile, the ToC was not working properly. Specifically the Next Steps band.
The Next Steps band has a different HTML structure and the ToC was not accounting for it, resulting in the "next steps" button when clicked, to scroll to the top of the page instead of the actual Next Steps band
As for now, this is reproducible in any live page:
https://www.ibm.com/products/cloud-pak-for-data/resources
### Changelog
Slightly changed the way we calculate the scroll position, to account for any HTML structure.
https://github.com/user-attachments/assets/bb994088-b558-4ad3-b03d-547aaedf983e1 parent 8c1cca7 commit 4fe0a9f
1 file changed
Lines changed: 6 additions & 3 deletions
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
439 | | - | |
440 | | - | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
441 | 444 | | |
442 | 445 | | |
443 | | - | |
| 446 | + | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| |||
0 commit comments