Skip to content

[data grid] Improve font usage #47118

@michelengelen

Description

@michelengelen

Steps to reproduce

3. Theming – Fonts

Issue:

  • line-height behaves differently in ColumnHeader vs. Cell:
    • ColumnHeader: text remains centered (controlled by parent element).
    • Cell: line-height directly affects vertical alignment.
  • Leads to:
    • Misalignment
    • Poor text selection appearance (highlight fills entire cell)

👉 Code Example

Wish (Request):

  • Make vertical alignment stable regardless of line-height
  • Ensure consistent appearance across headers and cells

Current behavior

No response

Expected behavior

No response

Context

This is extracted from #46725

Your environment

No response

Search keywords: -

Metadata

Metadata

Assignees

Labels

customization: themeHigher level theming customizability.design: uiVisual design.scope: data gridChanges related to the data grid.scope: systemThe system, the design tokens / styling foundations used across components. eg. @mui/system with MUItype: enhancementIt’s an improvement, but we can’t make up our mind whether it's a bug fix or a new feature.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions