Closed gwionap closed 1 year ago
Thanks @gwionap ! I should have explained that I would like to limit the number of partials we create (if possible) to limit the amount of code we maintain and to make it easier to upgrade to new versions of mkdocs-material. So for example tabs-item.html was only temporary until the mkdocs-material made some changes (see https://github.com/squidfunk/mkdocs-material/pull/5138). Did you try to see if there was a way of making the changes just by updating the stylesheet? Also I hadn't realised the change was going to affect tabs_items otherwise I would have told you to wait until 9.2 is released (sorry!).
The partials are only there to implement #37 as I needed a <span>
element to enclose the title so that the yellow highlighting only applies to the text. Via css I could only clip the background to the content box. I can remove it if you'd rather tackle that separately. Unless you know of another way?
Hey @gwionap made a few changes:
Would you mind reviewing? I did notice that longer subheadings don't carry over nicely so we will need to make sure the titles are nice and short:
@SoumayaMauthoorMOJ - happy with those changes. Very neat fix for the scrolling issue.