Can't customize icons for mode widget (input_select)

The mode widget allows for icon_on and icon_off configuration but it has no effect, the icon defined in the input_select entity is always shown. How can I customize that so each mode widget has icon as per my configuration?
Below code always render as on the picture:

heating_off:
  widget_type: mode
  mode: "reduced"
  title: Eco
  icon_on: mdi-power
  icon_off: mdi-power
  icon_style_active: "color: red"
  script: script.heating_off
  entity: input_select.heating_mode
  title_style: "font-size: 150%;"
heating_auto:
  widget_type: mode
  mode: auto
  title: Auto
  icon_on: mdi-calendar-clock
  icon_off: mdi-calendar-clock
  script: script.heating_auto
  entity: input_select.heating_mode
  title_style: "font-size: 150%;"
heating_heat:
  widget_type: mode
  mode: heat
  title: Grzanie
  icon_on: mdi-fire
  icon_off: mdi-fire
  icon_style_active: "color: orange"
  script: script.heating_heat
  entity: input_select.heating_mode
  title_style: "font-size: 150%;"

image

Maybe you have the use_hass_icon global parameter set by mistake at the top of the page?

i.e.

global_parameters:
    use_hass_icon: 1

Bingo! Indeed, it was there and caused the behaviour. Many thanks!