The Default textformat CSS is applied two recurring times in the code.
It's not breaking or anything, but just "more code for nothing".

Here's what I found :

I noticed in the inspector that the same CSS rule was applied two times to the same selector and that they were very close (line 109 and line 114)

0_1606391965533_e7afaf8f-149c-4a5e-ac5d-97ea12e5dfa3-image.png

I searched in laygridders files for .lg-textformat-parent > *, ._Default{ and added /* test n° */ to each occurence.

0_1606391726994_ef4be69c-b4df-433a-982f-b752a7d34b63-image.png

Result in the rendered HTML :

0_1606391893555_5f30de7d-a006-4933-88a2-fccb60d24232-image.png

After code inspection, it seems like test 1 and test 5 are identical rules that can be both printed depending on those conditions :

  • "test 1" will be printed every time, no matter what.
  • "test 5" will be printed if LayGridderFormatsManager::$hasTabletSettings is false

I'm pretty sure we can delete the second occurrence ( where I commented /* test 5 */ ) without any consequence except cleaner code.

laygridder > formatsmanager > formatsmanager.php -- line 486
0_1606392721907_37c8e127-f06b-4823-9c5b-d48ffe28e5c2-image.png

I also found this issue on most of the other website featured on laygridder.com.
The ones I didn't find the issue probably had LayGridderFormatsManager::$hasTabletSettings enabled.