SyntekPro Toggle v1.6.7
What's Fixed in v1.6.7
Bug Fixes
-
Both icons showing simultaneously — The sun and moon icons were both visible at the same time due to a CSS specificity conflict:
display: flex !importanton the icon container was overriding both the icon-hide CSS rules (lower specificity) and JavaScript'selement.style.display = 'none'(stylesheet!importantbeats inline style). Fixed by removing!importantfrom the container rule and using button-scoped selectors.syntekpro-toggle-btn .syntekpro-icon-sun/moonwith!important. -
Button jumping to page bottom on toggle — Clicking the button caused it to move to the bottom of the page instead of staying fixed to the viewport.
position: fixedwas only set in the CSS class, so any theme CSS with higher specificity could override it, makingbottom: 30pxposition relative to the document end. Fixed by addingposition: fixeddirectly to the button's inline style.