From 12e444725e2702cc3c05b4cd69dc55dfbabf180e Mon Sep 17 00:00:00 2001 From: Ragini Pandey Date: Wed, 25 Mar 2026 16:31:54 +0530 Subject: [PATCH] fix: replace :first-child with :first-of-type in mapbox-gl.css The :first-child pseudo-class causes Emotion (a CSS-in-JS library) to log a warning when doing server-side rendering: 'The pseudo-class ":first-child" is potentially unsafe when doing server-side rendering. Try changing it to ":first-of-type".' Replacing with :first-of-type is semantically equivalent here since all children of .mapboxgl-ctrl-group are button elements, and also resolves the SSR warning. Fixes #13639 --- src/css/mapbox-gl.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/css/mapbox-gl.css b/src/css/mapbox-gl.css index f9c5593cf9d..ea01f120893 100644 --- a/src/css/mapbox-gl.css +++ b/src/css/mapbox-gl.css @@ -147,7 +147,7 @@ opacity: 0.25; } -.mapboxgl-ctrl-group button:first-child { +.mapboxgl-ctrl-group button:first-of-type { border-radius: 4px 4px 0 0; }