The bug
In 18w21a, colors for item names were reinstated. However, when selected, their name, when displayed above the hotbar, still displays as white and does not show the colors like they do inside the inventory.
Linked issues
relates to 3
Attachments
Comments

This is more like a feature request. The text above the hotbar doesn't have any colors in 1.12 either, iirc.

If MC-5206 was regarded as a bug, then I don't see why this should not be.

Fix confirmed.
Not fix in pre release 2 it's work for rarely item but for item with color it's not work
[media][media]

Wouldn't that count as a separate issue though? This report is specifically to do with hardcoded item rarity based colours.
Does this also affect 1.12?