SVG currentColor not working on page scroll

Hello,

Im trying to get fill=“currentColor” to work on an SVG page logo. I want it to change from black to white depending on if the section bkg is light or dark. I’m trying to make this work with section text color but it seems to be locked to the body tags text color. Is there any way to make this happen?