go back and import the example in Examples of Colour change button and switch and see if you can spot your mistakes (note the plural)
- msg.icon is wrong - go look at the example and see what it should be
- your html is wrong - go look at the example and see what it should be