Skip to content
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

fix(material/list/testing): avoid element selectors that could conflict with the MDC version #20528

Conversation

devversion
Copy link
Member

Simplifies the harness CSS selectors for list items. They currently are built up based on element
types but could be just using the list-item class that is applied automatically by the component.

Also removes a few of the unnecessary :not selectors for the standard MatList harness.

@devversion devversion added the target: patch This PR is targeted for the next patch release label Sep 10, 2020
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Sep 10, 2020
…ct with the MDC version

Simplifies the harness CSS selectors for list items. They currently
are built up based on element types but could be just using the
list-item class that is applied automatically by the component.

Also removes a few of the unnecessary `:not` selectors for
the standard `MatList` harness.
@devversion devversion force-pushed the refactor/list-testing-simplify-selectors branch from 50e2556 to 148039f Compare September 10, 2020 10:05
@devversion devversion changed the title refactor(material/list/testing): simplify harness selectors for items fix(material/list/testing): avoid element selectors that could conflict with the MDC version Sep 10, 2020
Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

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

LGTM

@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Sep 10, 2020
@wagnermaciel wagnermaciel merged commit 8d643a0 into angular:master Sep 15, 2020
wagnermaciel pushed a commit that referenced this pull request Sep 15, 2020
…ct with the MDC version (#20528)

Simplifies the harness CSS selectors for list items. They currently
are built up based on element types but could be just using the
list-item class that is applied automatically by the component.

Also removes a few of the unnecessary `:not` selectors for
the standard `MatList` harness.

(cherry picked from commit 8d643a0)
@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 16, 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 target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants