layer5 icon indicating copy to clipboard operation
layer5 copied to clipboard

[UI] Fix unclosed @media query in DeployServiceMesh component styling

Open ayushbuilds-code opened this issue 2 weeks ago • 2 comments

Description

In src/sections/DeployServiceMesh/DeployServiceMesh.style.js, the @media screen and (-webkit-min-device-pixel-ratio:0) media query opened at line 111 is never closed.

Actual Behaviour

The media query opens at line 111 to style WebKit-specific range input rules:

@media screen and (-webkit-min-device-pixel-ratio:0) {
  input[type='range'] { ... }
  .bubble { ... }
  .bubble::after { ... }

However, there is no closing } after .bubble::after (line 138). As a result, the subsequent 188 lines of CSS—including .slider, .slider::-moz-range-thumb, .step-progress, and .progress-done—are inadvertently nested inside the WebKit-only media query.

This causes:

  1. Styles meant for all browsers (such as .slider and .progress-done) to be scoped only to WebKit browsers.
  2. Gecko-specific rules like .slider::-moz-range-thumb to be nested inside a WebKit media query that Firefox ignores.
  3. Braces in DeployServiceMesh.style.js to be unbalanced (58 open vs 57 close).

Expected Behaviour

The @media screen and (-webkit-min-device-pixel-ratio:0) block should be closed after .bubble::after, allowing .slider and subsequent rules to sit at the component root level with balanced braces (58/58).

Suggested Fix

Add the missing closing } after line 138 before .slider in src/sections/DeployServiceMesh/DeployServiceMesh.style.js.

ayushbuilds-code avatar Nov 16 '26 20:11 ayushbuilds-code

I have identified the root cause and have a targeted 2-line fix ready. Please assign this issue to me. Opening PR shortly.

ayushbuilds-code avatar Nov 16 '26 20:11 ayushbuilds-code

I have opened PR https://github.com/layer5io/layer5/pull/8430 with the targeted fix.

ayushbuilds-code avatar Nov 16 '26 20:11 ayushbuilds-code