Closed (fixed)
Project:
Smart Date
Version:
4.1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2024 at 23:26 UTC
Updated:
7 Apr 2024 at 16:54 UTC
Jump to comment: Most recent
Stylelint is reporting the following errors in GitLab CI:
css/smart_date.css
16:3 ✖ Expected "width" to come before "margin-right" order/properties-order
18:3 ✖ Expected "padding-top" to come before "text-align" order/properties-order
30:3 ✖ Expected "display" to come before "padding-top" order/properties-order
47:3 ✖ Expected "position" to come before "margin" order/properties-order
67:3 ✖ Expected "display" to come before "margin" order/properties-order
75:3 ✖ Expected "display" to come before "text-align" order/properties-order
76:3 ✖ Unexpected duplicate "padding-top" declaration-block-no-duplicate-properties
158:3 ✖ Expected "display" to come before "margin" order/properties-order
185:18 ✖ Unexpected unit length-zero-no-unit
186:21 ✖ Unexpected unit length-zero-no-unit
10 problems (10 errors, 0 warnings)Open GitLab in browser and view latest pipeline.
The reported issues are mainly ordering of styles.
When using ddev-drupal-contrip, fixes can be applied automatically with the following command: ddev stylelint --fix
Related issue #3433051: Add Gitlab CI needs to be merged first.
Then apply automatic fixes and create merge request.
N/A
N/A
N/A
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
lostcarpark commentedI have applied stylelint fixes by running
ddev stylelint --fix.This has mostly just corrected style ordering, but there were a couple of cases of "0" being used with units, and a
first-letterpseudo-class referenced without double colon.I don't think these changes should change how anything is displayed, but it would be prudent for someone more familiar with how it should format than me to give it a quick visual inspection.
Comment #4
lostcarpark commentedI've also set the stylelint check to
allow_failure: false, which will prevent future CSS changes that don't pass from being merged.Setting to "needs review".
Comment #7
mandclu commented@lostcarpark thank you for identifying this, and for providing a fix. The only change I was concerned about was the change from one colon to two for the first-letter selector, but I was able to manually verify that everything still looks as expected. From what I understand this could present an issue for anyone on older versions of Internet Explorer, but I don't believe they should be supported at this point anyway.
Merged in, and will include in a new release shortly.