Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Starterkit sass styles don't pass sass-lint check
components/base/forms/_forms.scss
36:1 error Please check validity of the block starting from line #36 Fatal
✖ 1 problem (1 error, 0 warnings)
This error on line with IE6,7 hacks http://cgit.drupalcode.org/zen/tree/STARTERKIT/components/base/forms/_fo...
// Improve appearance and consistency with IE 6/7.
*vertical-align: middle;
the same for lines 183, 184
http://cgit.drupalcode.org/zen/tree/STARTERKIT/components/base/forms/_fo...
Steps to reprodule
- drush dl zen-8.x-7.x && cd zen
- npm install
- gulp lint:sass
Proposed resolution
Based on https://www.drupal.org/node/1569578
Let's remove styles for add support of IE6,7
Comment | File | Size | Author |
---|---|---|---|
#9 | interdiff-2827085-5-9.txt | 3.89 KB | HOG |
#9 | fatal_sass_lint_error-2827085-9.patch | 3.74 KB | HOG |
#5 | fatal_sass_lint_error-2827085-5.patch | 2.22 KB | finnsky |
Comments
Comment #2
andypostI think we should remove this because d8 does not support ie 6-8 https://www.drupal.org/node/1569578
Comment #3
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedComment #4
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedComment #5
finnsky CreditAttribution: finnsky at Skilld commentedHi!
Cleaned IE7 specific styles. Not all of them gave error, but when you start to kick IE, it's not easy to stop:)
In case of that issue this seems reasonable for me, because theme (and subtheme) can support IE6-8 itself, but it has no reasons if core css/js will not work there.
Please review. Thanks
Comment #6
finnsky CreditAttribution: finnsky at Skilld commentedComment #7
andriyun CreditAttribution: andriyun at Skilld, Drupal Ukraine Community commentedOk for me +1 to RTBC
Comment #8
andypostLet's see what maintainer thinks, I see no reason to support ie6-8
Comment #9
HOG CreditAttribution: HOG at Skilld, Drupal Ukraine Community commentedI also fixed some sass lint warnings.
Comment #10
Christian DeLoach CreditAttribution: Christian DeLoach commentedI think the changes should stay focused and be limited to the original issue's objective. Adding the additional SASS lint warning fixes have already been covered by other issues (e.g. https://www.drupal.org/node/2751687) and should be discussed and patched there. Someone looking to patch the forms.scss may not wish to apply the changes to eliminate the "Pseudo-elements must start with double colons" warnings. While I appreciate the contribution, I recommend apply the patch from #5 which addresses the issue reported by the original poster.