-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Description
What are you trying to do?
Hi all!
tl;dr;
Is :label-shown preudo-class used in form-field component necessary / valid?
(e.g. https://github.com/angular/components/blob/master/src/material/form-field/_form-field-fill-theme.scss#L100)
Problem background
I'm trying to use polyfill for paged media (https://www.pagedmedia.org/paged-js/) in combination with "@angular/material": "12.2.4" and it complains about :
Uncaught DOMException: Failed to execute 'querySelectorAll' on 'Document': '.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label' is not a valid selector. at <anonymous>:1:10
Breaking it down, the only breaking part in selector is pseudo-selector ":label-shown" about which existence I've never heard of anywhere else.
What troubleshooting steps have you tried?
I've tried to filter out css styles used in my application, problem emerges when mat.core mixin is in place.
Reproduction
Steps to reproduce:
- check https://stackblitz.com/edit/angular-ivy-24s2x2?file=src/app/app.component.scss
- comment / uncomment
mat.corein app.component.scss
Environment
- Angular: 12.1.2
- CDK/Material: 12.2.4
- Browser(s): Google Chrome Version 96.0.4664.110 (Official Build) (64-bit)
- Operating System (e.g. Windows, macOS, Ubuntu): Windows 10 Pro