The consumer staples sector declined as investors rotated out of defensive areas and into technology stocks. This movement was largely driven by blockbuster earnings from tech giants like Nvidia, which spurred a 'risk-on' sentiment across the market. While recent data shows a 7-month low in consumer confidence and persistent inflation, the positive earnings news from the tech sector overshadowed these concerns for the session, leading to a sell-off in traditionally safer assets like consumer staples.