Google's John Mueller said that when it comes to hidden text on a page, Google is "good at ignoring it." It is one of those things that Google seems not to penalize for anymore but rather just not count the text that is not visible on the page....
-
Google: We Ignore Hidden Text On A Page
seroundtable.com