We are called to bear witness to the gospel with our lives, not in hiding, but that our light may shine and be seen by all. Jesus had taught this before, and so the condemnation of the outward show of the Pharisees today is not a contrary teaching.
Instead, Jesus calls our minds and attention to proper understanding and discipline between spirituality and piety expressed in Right Action, Right Intention, and Just or Proper Circumstance.
Good morning, and enjoy your day.
God bless you!