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(menu): Add specificity to selection group class #4172

Merged
merged 8 commits into from
Dec 14, 2018

Conversation

williamernest
Copy link
Contributor

@williamernest williamernest commented Dec 12, 2018

fixes: #4169

@kfranqueiro
Copy link
Contributor

I think this is referencing the wrong bug?

Also, should I be able to repro the bug on the new screenshot test page if I un-nest the selector? The page seems to look identical to me in both cases.

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

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

#4170 appears to be unrelated to menu. Did you mean a different issue?

Looks like golden.json needs to be updated too.


.mdc-menu__selection-group-icon {
@include mdc-rtl-reflexive-position(left, 16px);
// Extra specificity required because list-item graphic needed to increase specificity.
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see .mdc-list-item__graphic anywhere on the screenshot test page. How is this related?

Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can you update this comment to something like:

// Extra specificity required to override `display` property on `mdc-list-item__graphic`.

@kfranqueiro
Copy link
Contributor

Here's the report to update goldens from:

https://storage.googleapis.com/mdc-web-screenshot-tests/travis/2018/12/13/21_10_43_629/report/report.html?utm_source=cli&utm_medium=test_results

I can now repro the bug by reverting the CSS change on the branch.

@acdvorak acdvorak added this to the v0.43.0 milestone Dec 14, 2018
@kfranqueiro kfranqueiro removed this from the v0.43.0 milestone Dec 14, 2018
@kfranqueiro
Copy link
Contributor

I noticed the checkmark is misaligned in IE but this seems to be a pre-existing issue to this PR, so I logged #4184.

@mdc-web-bot
Copy link
Collaborator

Copy link
Contributor

@acdvorak acdvorak left a comment

Choose a reason for hiding this comment

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

LGTM!


.mdc-menu__selection-group-icon {
@include mdc-rtl-reflexive-position(left, 16px);
// Extra specificity required because list-item graphic needed to increase specificity.
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Can you update this comment to something like:

// Extra specificity required to override `display` property on `mdc-list-item__graphic`.

@mdc-web-bot
Copy link
Collaborator

@williamernest williamernest merged commit 1d919ef into master Dec 14, 2018
@williamernest williamernest deleted the fix/menu/specificity-issue branch December 14, 2018 17:36
adrianschmidt pushed a commit to Lundalogik/material-components-web that referenced this pull request Jan 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MDCMenu: Selection group shows all check icons since extra specificity was added to the list item graphic
5 participants