Setting the intention to practice kindness toward one's partner or family members or friends does not preclude getting angry or upset.

Setting the intention to practice kindness toward one’s partner or family members or friends does not preclude getting angry or upset.
– Sharon Salzberg