Skip to content

[OutlinedInput] No highlighted border on input on mobile #43797

Closed
@matthiasschwarz

Description

Steps to reproduce

Link to live example: Example

Steps:

  1. Open site on mobile (or emulate mobile device via DevTools of the browser)
  2. Click inside the input field

Current behavior

The border of the input field is not highlighted.

image

Expected behavior

The border of the input field is highlighted since this is the behaviour on desktop and @mui/material versions below 6.

image

Context

The user expects a visible clue on the border of a focused outlined input during input.

This issue seems be caused by a change of the style rule order introduced in @mui/material since version 6. The @media (hover: none) currently takes priority and removes the highlighting of the border. Reference

Your environment

No response

Search keywords: @mui/material, OutlinedInput, Border, Focus, Mobile

Metadata

Assignees

Labels

bug 🐛Something doesn't workcomponent: text fieldThis is the name of the generic UI component, not the React module!priority: importantThis change can make a differenceregressionA bug, but worsev6.x

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions