All contributions

mui/material-ui

Material UI

A React component library that implements Google's Material Design: ready-made text fields, selects, buttons and other interface elements.

Language
JavaScript
GitHub stars
99,391
Merged changes
2
Project site
mui.com

What we changed

The outline of a text field without a label no longer has a gap in Firefox, and NativeSelect no longer advertises an iconOpen class that a native select could never apply.

What this work shows

  • Cross-browser CSS differences
  • Public component class API
  • React component tests
What was broken

A gap in the outline of an unlabelled field

An outlined text field without a label has a legend holding only a zero-width space. Firefox applied the body1 letter-spacing to it, so the legend was 0.15px wide and a gap showed in the outline when zoomed in.

How we fixed it

The unlabelled legend has zero width

The legend of a field without a label now has maxWidth: 0, the workaround described in the issue. The outline is continuous in Firefox too.

#49493

What was broken

NativeSelect had a class with no effect

A native select does not expose whether it is open, so NativeSelect could never apply the iconOpen class. The class and the 180 degree icon rotation were in the API docs but did nothing.

How we fixed it

Class removed, rotation moved to Select

We removed iconOpen from NativeSelect, its types and the API docs. The open-state icon rotation moved onto the icon of the Select component, which knows its state, and a test checks that the icon rotates.

#49494

Merged changes 2

  1. #49494 [native select] Remove the unused iconOpen class Merged 27 October 2026
  2. #49493 [text field] Fix outline gap without a label in Firefox Merged 26 October 2026

What it taught us

A bug that only shows in one browser when zoomed in has to be traced down to the CSS property behind it instead of patching the symptom. In a component library we keep the public API limited to what actually works.

More about this technology: TypeScript, React and Node

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.