mui / mui/material-ui

[Joy-ui] [Table] Focus style on table rows is inconsistent

Open
#42,980 1 comment 2 reactions 1 assignee View on GitHub

@siriwatknp is already working on this.

Since Jul 17, 2024.

on hold package: joy-ui scope: table
Dominant language
JavaScript
Stars
99.1k
Forks
32.5k
Avg merge
2d 17h
Merged PRs (30d)
106

Description

Steps to reproduce

Link to live example: https://mui.com/joy-ui/react-table/

Steps:

  1. Enable the "sticky header" on the first example
  2. Set the first row to :focus-visible

Note: On chrome/edge the focus also looks different! The firefox one is blue with lines above and below, while the chrome/edge version is black and all around.

Current behavior

The top part of the outline is missing (hidden below header)

Firefox:

grafik

Edge:

grafik

Expected behavior

Looks the same as focus for second row (line below and above)

grafik

Context

I want to support keyboard navigation using these focus styles.

Your environment
npx @mui/envinfo

System:
OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
Binaries:
Node: 20.14.0 - ~/.nvm/versions/node/v20.14.0/bin/node
npm: 9.6.7 - ~/.nvm/versions/node/v20.14.0/bin/npm
pnpm: 8.12.1 - ~/.local/share/pnpm/pnpm
Browsers:
Firefox

Search keywords: focus table row sticky header

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.