---
title: "Material UI: text field and select fixes in React | VulCode"
description: "Two fixes to Material UI in React: the outline of a text field without a label no longer breaks in Firefox, and a never-applied iconOpen class is gone."
url: "https://vulcode.com/en/opensource/contributions/material-ui"
lang: "en"
---

[All contributions](https://vulcode.com/en/opensource/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.

[See the repository](https://github.com/mui/material-ui) [All contributions](https://vulcode.com/en/opensource/contributions)

- **Language**: JavaScript
- **GitHub stars**: 99,391
- **Merged changes**: 2
- **Project site**: [mui.com](https://mui.com/material-ui/)

## 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](https://github.com/mui/material-ui/pull/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](https://github.com/mui/material-ui/pull/49494)

## Merged changes 2

- [#49494 [native select] Remove the unused iconOpen class Merged 27 October 2026](https://github.com/mui/material-ui/pull/49494)

- [#49493 [text field] Fix outline gap without a label in Firefox Merged 26 October 2026](https://github.com/mui/material-ui/pull/49493)

## 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](https://vulcode.com/en/technologies/typescript-react-and-node)

## Other projects we write code for

- [**Grafana** TypeScript · 78,050 stars An open observability and data visualisation platform that shows metrics, logs and traces from Prometheus, Loki, Elasticsearch, PostgreSQL and many other sources on dashboards.](https://vulcode.com/en/opensource/contributions/grafana)

- [**Marked** TypeScript · 37,323 stars A fast Markdown parser and compiler to HTML, written in TypeScript and following CommonMark and GitHub Flavored Markdown.](https://vulcode.com/en/opensource/contributions/marked)

- [**Autoprefixer** JavaScript · 22,197 stars A PostCSS plugin that adds browser prefixes to CSS based on Can I Use data, including the -ms-grid syntax for CSS Grid layouts.](https://vulcode.com/en/opensource/contributions/autoprefixer)

- [**Lichess** TypeScript · 19,013 stars The lichess.org chess server: free, ad-free and open source, focused on real-time play. The back end is written in Scala, the interface in TypeScript.](https://vulcode.com/en/opensource/contributions/lichess)

- [**compromise** JavaScript · 12,176 stars A natural language processing library in JavaScript: it splits text into sentences and words, tags parts of speech, conjugates verbs and inflects nouns, and reads dates through a plugin. It runs in the browser and in Node.js.](https://vulcode.com/en/opensource/contributions/compromise)

- [**Pterodactyl** PHP · 9,537 stars A free, open source game server management panel built with PHP, React and Go. Every game server runs in its own isolated Docker container.](https://vulcode.com/en/opensource/contributions/pterodactyl)

## Describe your project.

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

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)
