Buttons adapted for special ways of fastening with shank and counterpiece with snap-action counterpiece