Anything you accept (like her kicking at your foot) is exactly what you are teaching her to do. It is just as sure as if that was your object in the first place. If you do not interrupt unacceptable behavior and scold or punish a horse in some way for the behavior, it will happen again but probably with more force and more serious consequences.
Just like a horse should be reprimanded for kicking at a person that is tightening a girth or brushing its belly, it should be reprimanded for any aggressive action while a rider is mounted. You should set firm but fair boundaries and and be 100% consistent in how you enforce them. Not only does that make the horse a 'better trained horse' but it keeps one happy and it keeps its riders and handlers safer.