Skip to content

mdc-list: support for strong focus indicators and fix incorrect cursor for non-interactive items #20476

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

devversion
Copy link
Member

See individual commits.

@devversion devversion added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent merge safe target: patch This PR is targeted for the next patch release labels Sep 2, 2020
@devversion devversion requested a review from mmalerba as a code owner September 2, 2020 11:35
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 2, 2020
…dicators

Adds support for strong focus indicators to the MDC-based list.
Also simplifies SCSS code for the hover/focus/selected styles.
…on-interactive list items

The MDC list currently always shows the pointer cursor for all kinds
of list items, regardless of them being interactive or not (through
instantiation of the foundation).

This seems to be unexpected as the pointer cursor incorrectly suggests
interactivity of a list item to users. We manually reset the cursor
for non-interactive list items and report an issue upstream:

material-components/material-components-web#6443

Note: MDC list does no longer seem to support the `non-interactive`
class we previously used, so we replace it with our own.
@devversion devversion force-pushed the feat/mdc-list-focus-indicator-strong branch from 48ce308 to def4c8d Compare September 2, 2020 12:23
Copy link
Contributor

@mmalerba mmalerba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmalerba mmalerba added the action: merge The PR is ready for merge by the caretaker label Sep 3, 2020
@mmalerba mmalerba merged commit 3474aaa into angular:master Sep 5, 2020
mmalerba pushed a commit that referenced this pull request Sep 5, 2020
…r for non-interactive items (#20476)

* feat(material-experimental/mdc-list): add support for strong focus indicators

Adds support for strong focus indicators to the MDC-based list.
Also simplifies SCSS code for the hover/focus/selected styles.

* fix(material-experimental/mdc-list): do not show pointer cursor for non-interactive list items

The MDC list currently always shows the pointer cursor for all kinds
of list items, regardless of them being interactive or not (through
instantiation of the foundation).

This seems to be unexpected as the pointer cursor incorrectly suggests
interactivity of a list item to users. We manually reset the cursor
for non-interactive list items and report an issue upstream:

material-components/material-components-web#6443

Note: MDC list does no longer seem to support the `non-interactive`
class we previously used, so we replace it with our own.

(cherry picked from commit 3474aaa)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants