Those colored squares may be Aura Indicators using the Colored Icon style. Aura Indicators are separate from the frame’s regular Buffs and Debuffs icons.
Show spell textures on party indicators
- Open the party settings
Type /ec, then go to UnitFrames → Group Units → Party → Auras → Aura Indicator.
- Choose Textured Icon
Select Apply To All, then change Style to Textured Icon.
- Check the affected frame
For raid or another supported frame, open that frame’s own Aura Indicator settings.

Customize one aura
Use Configure Auras where available, or open Filters, select the relevant indicator filter, such as Aura Indicators (Class), and choose the aura you want to adjust.