Problem/Motivation

A recent branch test points out that there are CSS coding standards errors in examples: https://www.drupal.org/pift-ci-job/689152

Click the '9 coding standards messages' link to see the errors:

css/examples.icons.css
line 14	Background image '../images/examples.svg' was used multiple times, first declared at line 10, col 3.
field_permission_example/css/field_permission_example.css
10	Expected (<color>) but found '1000'.
17	Values of 0 shouldn't have units specified.
18	Values of 0 shouldn't have units specified.
18	Standard property 'box-shadow' should come after vendor-prefixed property '-moz-box-shadow'.
19	Values of 0 shouldn't have units specified.
19	Standard property 'box-shadow' should come after vendor-prefixed property '-webkit-box-shadow'.
js_example/css/jsweights.css
1	Don't use IDs in selectors.
1	Element (div#js-weights) is overqualified, just use #js-weights without element name.

Proposed resolution

Fix these errors.

How:

  • Identify errors to fix.
  • Submit a patch with those fixes.
  • The testbot result should provide a review of the files changed by the patch.
  • Repeat as needed.

Remaining tasks

User interface changes

API changes

Data model changes

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Mile23 created an issue. See original summary.

yash_khandelwal’s picture

Status: Active » Needs review
FileSize
2 KB

Patch has been created. Please check.

Mile23’s picture

Status: Needs review » Needs work

Thanks, looks like a good start.

If you click on the test run you'll see there are still errors:

field_permission_example/css/field_permission_example.css
line 17	Values of 0 shouldn't have units specified.
18	Values of 0 shouldn't have units specified.
19	Values of 0 shouldn't have units specified.
js_example/css/jsweights.css
1	Don't use IDs in selectors.
yash_khandelwal’s picture

Created the new patch and interdiff, please review now.

Mile23’s picture

Status: Needs review » Fixed

Nice, Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.