How do I dye sheep or wool?

This has been driving me crazy. I made yellow dye and I have the white wool, but there’s no section in the crafting table that allows me to make yellow wool or any dyed wool for that matter.

I’m playing Minecraft 1.14, Java Version.

Can I dye a sheep and then shear it? Can it be done post shearing?