סימן ריט סעיף ה
הַקּוֹבֵר אֶת מֵתוֹ אוֹ שָׁמַע שְׁמוּעָה קְרוֹבָה (עַיֵן לְעֵיל סִימָן רו) בָּרֶגֶל, בֵּין בְּיוֹם טוֹב בֵּין בְּחֹל הַמּוֹעֵד, לֹא חָלָה עָלָיו אֲבֵלוּת עַד לְאַחַר הָרֶגֶל. (וְדִין אֲנִנוּת, עַיֵן לְעֵיל סִימָן קצו). וְהַנֵי מִלֵּי, בִּדְבָרִים שֶׁל פַּרְהֶסְיָא. אֲבָל דְּבָרִים שֶׁבְּצִנְעָא, נוֹהֵג גַּם בָּרֶגֶל. לֹא יַחֲלִיף בְּגָדָיו, דְּזֶה הֲוֵי פַרְהֶסְיָא. (וְאַף עַל גַּב דִּשְׁאָר אָבֵל מְשַׁנֶה בְגָדָיו גַּם בַּרֶגֶל, מִכָּל מָקוֹם זֶה שֶׁלֹּא הִתְחִיל עֲדַיִן אֲבֵלוּת, אֵין לוֹ לְשַׁנּוֹת בָּרֶגֶל). וּמִי שֶׁמַּנִיחַ תְּפִלִּין בְּחֹל הַמּוֹעֵד, יַנִּיחַ גַּם בַּיּוֹם הָרִאשׁוֹן שֶׁלְּאַחַר הַקְּבוּרָה.
If he buried his dead, or received timely news of his relatives death, on a Yom Tov, whether on Yom Tov itself, or on Chol Hamoed, he is not subject to the laws of mourning,7However he should light a candle, as is done on the seven days of mourning. It should not be lit where he eats and not where the person died. On Yom Tov it must be lit by a non-Jew, because the candle is not for his personal needs for Yom Tov. until after the Yom Tov. This rule applies to the observance of mourning in public. But the laws concerning his private life must be observed even on a Yom Tov. He should not change his garments,8He should not remove his Yom Tov garments. With regard to new clothing, the Peri Megadim is doubtful. Sha’ar Hatziyon 548:9. 9He should also not change his place in the synagogue. Mishnah Berurah 548:15. for this would constitute a public display of mourning. (Although every other mourner must change his clothing during a Yom Tov, nevertheless, this person who has not yet begun to mourn, should not change his garments during the Festival). One who puts on Tefillin during Chol Hamoed, should also put them on on the first day after the burial.10The Peri Megadim is doubtful about this. Mishnah Berurah 38:16.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)