Skip to content

bug(Paginator): prevent hover and focus on mouse and touch interactions to disabled buttons #30687

Closed
@RobinKamps

Description

@RobinKamps

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

No response

Description

The disabled paginator buttons have a hover and focus state (e.g. on mouse hover / click (or touch)).

(#30627 only fixed the tab / keyboard focus of disabled paginator buttons.)

E.g.: https://material.angular.io/components/paginator/overview

Other disabled buttons do not display hover or focused states:
E.g.: https://material.angular.io/components/button/overview

Please remove this behaviour from paginator disabled buttons.

Reproduction

https://material.angular.io/components/paginator/overview

move your mouse over the disabled paginator button to see hover layer.
click to focus the disabled button to see the focus layer.

Expected Behavior

No hover and bno focus of disabled buttons.

Actual Behavior

Hover and Focus layer of disabled buttons are shown.

Environment

  • Angular: latest
  • CDK/Material: latest
  • Browser(s): Chrome / latest
  • Operating System (e.g. Windows, macOS, Ubuntu): All

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions