Steps to reproduce: /claro/css/components/form.css
1. go to /claro/css/components/form.css file
2. we have written IE11 specific css for placeholder. :-ms-input-placeholder {color: var(--color--gray-30) !important; } which is not required. Because yarn compiles the ::placeholder to :-ms-input-placeholder for IE11 support.
3. Adding screen-recording to better understanding.
Resolution:
::placeholder {
color: var(--color--gray-30);
}
/* IE 10 and 11 needs this set as important. */
:-ms-input-placeholder {
color: var(--color--gray-30) !important;
}This code compiles to
:-ms-input-placeholder {
color: #7e96a7;
}
::placeholder {
color: #7e96a7;
}
/* IE 10 and 11 needs this set as important. */
:-ms-input-placeholder {
color: #7e96a7 !important;
}So we can remove this extra line of code.
/* IE 10 and 11 needs this set as important. */
:-ms-input-placeholder {
color: var(--color--gray-30) !important;
}| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3213103-5.patch | 910 bytes | ranjith_kumar_k_u |
| #2 | 3213103-2.patch | 918 bytes | gauravvvv |
Comments
Comment #2
gauravvvv commentedI have removed the extra piece of code in patch #2, Please review.
Comment #4
bnjmnmThis may potentially be fixed as part of the work on #3254202: Remove IE11 Support from Claro
Comment #5
ranjith_kumar_k_u commentedComment #6
bnjmnmThe proposed solution in the issue summary (and the patch in #5) suggests removing this:
Because what is left compiles to this:
That includes removing an
!important, and there's a comment specifically stating the!importantis necessary in IE11, so why would we just remove that? Its not a duplicate as stated in the issue summary, it is there to to add specificity for the IE use case.It's possible the !important isn't needed anymore due to other changes, but we'd need evidence of that before we could justify removing something that was clearly intentional.
Comment #7
gauravvvv commentedHi @bnjmnm This issue was created in the reference of #3252084: [meta] Remove support for IE11 , removing support of IE11 from Drupal.
Comment #8
bnjmnm#7
This additional confusing to me, perhaps you can help clear it up.
-ms-input-placeholderpseudo, not sure how it would be related to removing IE supportI suppose it's even more important that the issue summary be updated as it's not currently clear what this issue is looking to address.
Comment #11
quietone commentedIE is no longer supported and the code changed in the patch was removed in #3254202: Remove IE11 Support from Claro.
Closing as outdated.
Comment #12
quietone commented