The CC fees should be paid by the product or service transaction. Maybe it's legal but it's not cool that you are basically charging your employees for the right to get a tip from a credit card transaction you are already processing.
I pay for the credit card processing fee for the item part of the bill.
For example, if someone came in and bought coffee for $20 and left a $10 tip. My credit card fee is $0.66 (2.2% of the $20 which is $0.44 and 2.2% of the $10 which is $0.22). So out of the $10 tip the wait staff gets $9.78 ($10 - $0.22).
So, instead you should not accept CC and expect the employees being happy with higher take from tips and less tips in general as losing people paying by CC would result?