Why does my custom CSS keep breaking in SharePoint Online? #M365AMA

In this episode, the #M365AMA panel discusses the following community question:

“My work uses SharePoint as our intranet, and we use custom styling to make a new page header. In aid of that, we have used css to hide the default header using
.mainContent div[data-automation-id=pageHeader]:first-child { display: none; }
However it has recently just… stopped working? Any ideas as to why that might happen? I know this is a shot in the dark, and am currently looking through what might be causing the issue internally!”

Check out the discussion here:

 

Participating in this discussion were:

Some relevant notes/links shared by the team:

Christian Buckley

Christian is a Microsoft Regional Director and M365 Apps & Services MVP, and an award-winning product marketer and technology evangelist, based in Silicon Slopes (Lehi), Utah. He is a startup advisor and investor, and an independent consultant providing fractional marketing and channel development services for Microsoft partners. He hosts the weekly #CollabTalk Podcast, weekly #ProjectFailureFiles series, monthly Guardians of M365 Governance (#GoM365gov) series, and the Microsoft 365 Ask-Me-Anything (#M365AMA) series.