Skip to content

Focus-visible applying with mouse on Slider #29506

@SofiaGR

Description

@SofiaGR

Hello, from what I understand, focus-visible is a class that is added only when the keyboard is used, but that does not seem to be the case for the Slider.

  • The issue is present in the latest release.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Current Behavior 😯

A box-shadow is being added when mouse/touchpad is used to interact with the slider.

Expected Behavior 🤔

No box-shadow is added when mouse/touchpad is used.

Steps to Reproduce 🕹

Steps:

  1. Visit https://codesandbox.io/s/continuousslider-material-demo-forked-iop49?file=/demo.js
  2. Click on the circle
  3. See box-shadow that appears on click that should not appear

Context 🔦

Your Environment 🌎

`npx @mui/envinfo`
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    scope: sliderChanges related to the slider.type: regressionA bug, but worse, it used to behave as expected.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions