Fix share control style and add test