How does Google treat hidden content which becomes visible when clicking a button?

How does Google treat hidden content which becomes visible when clicking a button? Does it look spammy if most of the text is in such a section? (e.g. simple page to buy something and “show details” button which reveals a lot of information about it.)
Thomas Greiner, Cologne