It is kufr to jest or mock at any matter, belief, concept or teaching of Islaam . In the same way it is kufr to consider any Deeni affair lightly or of little significance even if the matter is a mustahab.