RedEchidnaUK / Table-of-Contents

Creates a Table of Contents on SharePoint Online Modern pages based on the heading tags in the standard Text web part. This has not been tested with standalone SharePoint, but it may work.
MIT License
10 stars 4 forks source link

Default text colour "hidden" when using standard dark colour for vertical section #4

Closed rgould77 closed 1 year ago

rgould77 commented 1 year ago

Usually, text will invert when using the darkest (strong) section background colour. This webpart does not, which keeps the text colour the same as the background colour making it invisible. Can this invert (change to white) automatically, or is the webpart colours customisable? example

rgould77 commented 1 year ago

Sorry, way out of my depth - but found this: https://learn.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/guidance/supporting-section-backgrounds

RedEchidnaUK commented 1 year ago

I will try and take a look, but I can't promise anything as I'm not a SharePoint dev or even a web developer, so slightly out of my depth as well on this one.

rgould77 commented 1 year ago

Thanks! I've noticed that the header text DOES work correctly, and I have been able to find at least some of the elements required to make it work....

RedEchidnaUK commented 1 year ago

I've just pushed an updated version which should fix the themes issue. Please try it and let me know.

rgould77 commented 1 year ago

Thats it! Working well now, thank-you very much for correcting that.