Inspect a line icon in a button. If its paths have fill="none" and stroke="#000", changing the fill will have no visible effect. Set stroke="currentColor" on those paths and change the button's text color for a hover test.
For a solid icon, inspect fill instead. When both light and dark themes matter, check the normal, hovered and disabled states separately.