compliment (someone) on (something)
To praise someone for something specific. I have to compliment you on this dinner you made—it's just delicious! The salesman just complimented me on my beautiful smile!
compliment someone on something
to say something nice to someone about something connected to that person. I was pleased with Alice's work and complimented her on it. They complimented me on my new tie.