mui / mui/material-ui

Typograhpy - Text Formatting - Please add native support for configurable text highlighting to override native <mark> tag

Open
#42,642 1 comment 0 reactions 1 assignee View on GitHub

@siriwatknp is already working on this.

Since Jun 14, 2024.

scope: typography type: new feature
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Summary

Would like to add more native configurability in how MUI can render the "mark" html tag, in order to override the native browser support. Would be good to enable at minimum choice of color highlight background, and adding a bit of rounded corners to the highlight effect. Some considerations may apply to color-contrast and dark/light theme transitions.

Examples

No response

Motivation

We can certainly use CSS to override native browser behavior on "mark" but would be nice to have native MUI support, which would address accessibility, color-contrast, dark/light theme automatically.

Search keywords: mark highlight

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.