Resource color not applying to milestones

I have text and task bar colors assigned to my resources (as described in How to assign color styles to different resources automatically?). This is working well for Tasks of type “Task”. But if I change the task type to “Milestone”, the text and diamond color switch back to the default of blue. Is this a bug?