Fix page action button style when method is put.

Fixes #2880