San Francisco, CA
Account created on 20 July 2006, almost 18 years ago
#

Recent comments

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA
πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA
πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Hi Rahit,

Are you positive you're running PHPCS with `Drupal`, and `DrupalPractice` coding-standards loaded? AFAIK, JavaScript boolean values should be lowercase, but for PHP it should be uppercase.

You can check the installed standards via `phpcs -i`

Because this is what I get:

osman@drupal-web:/var/www/html$ vendor/bin/phpcs web/modules/contrib/lazy

FILE: /var/www/html/web/modules/contrib/lazy/lazy.module
------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
 9 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Field\FormatterInterface.
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------


FILE: /var/www/html/web/modules/contrib/lazy/src/Form/LazyForm.php
---------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------
 17 | ERROR | [x] Use statements should be sorted alphabetically. The first wrong one is Drupal\Core\Extension\ModuleHandlerInterface.
---------------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
---------------------------------------------------------------------------------------------------------------------------------------

Time: 203ms; Memory: 10MB

osman@drupal-web:/var/www/html$ vendor/bin/phpcs -i
The installed coding standards are MySource, PEAR, PSR1, PSR2, PSR12, Squiz, Zend, Drupal, DrupalPractice, VariableAnalysis and SlevomatCodingStandard

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Hey @pureh2o,

This module uses the bLazy library for the Drupal 7 version. In fact, the library changes to lazysizes later in 8.x-2.x branch.

See project page for that note:
https://www.drupal.org/project/lazy#breaking-changes-since-2-x β†’

And for the installation, when in doubt, always refer to the documentation comes with the version :)

https://git.drupalcode.org/project/lazy/-/blob/7.x-1.x/README.md

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Oversight on my end.

My apologies to the community.

Drupal 10 compatible 8.x-3.12 is now available.

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Thanks Hristo, and everyone : )

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA
πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Sorry, the patch in previous comment was against 10.x branch.

This is now against 11.x branch.

πŸ‡ΊπŸ‡ΈUnited States osman San Francisco, CA

Hi, I'm the owner/maintainer of previously mentioned CKEditor List Style β†’ module. Sorry for joining at a later stage.

I am very much looking forward to move this functionality to the core. And it is almost there.

Please find the attached re-roll of the patch with some CSS additions, and try it on a Firefox browser.

Here is why: https://caniuse.com/mdn-css_selectors_attribute_case_sensitive_modifier

And at this point I also would like to ask why we insist using the type attribute for the OL and UL elements?

Currently at least, the CKEditor uses following type attribute values for all available list styles:

ul[type="disc"]     // Disc
ul[type="circle"]   // Circle
ul[type="square"]   // Square

ol[type="1"]        // Decimal
ol[type="i"]        // Lower-Roman
ol[type="I"]        // Upper-Roman  
ol[type="a"]        // Lower-Latin
ol[type="A"]        // Upper-Latin

However, the ordered-lists are having a problem with these assignments, at least in my experience.

The values are the same, just lower and upper cases, however, by default, the CSS attribute selectors are case-insensitive.

I didn't find any discussions around this in drupal.org, i hope I'm not spamming this thread with this : )

Production build 0.69.0 2024