• Resolved Emmanuel Atsé

    (@eatse)


    (follow-up from the facebook group)

    Hi,

    Some times, styles are no more registering when setting them in local class menu

    It happens for some reason when building, but I didn’t find why for now.

    So this is the code of a buggy element: if you try to edit any style inside .card-item, it will work normally, but for some reason, the .icon-container selector won’t register any style. It will just set css for the last edit, but will wipe out anything older [codescreencast]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Emmanuel Atsé

    (@eatse)

    I think I found the issue, here:

    "selectors": [
    {
    "value": " h3",
    "attributes": {
    "styleAttributes": {
    "marginBottom": [
    "0px"
    ]
    }
    },
    "css": ".card-item h3{margin-bottom:0px;}"
    },
    {
    "value": " .icon-container",
    "attributes": [],
    "css": ".card-item .icon-container{width:200px;}"
    }
    ]

    The “attributes” of ” .icon-container” is set to [], this is why it’s buggy

    If I manually replace it by the basic value of {}, it then works normally

    There may be somewhere in GS code that set it to array instead of object then

    Plugin Support Illia Sanz

    (@illiagreen)

    You are definetely right. because of how different php and JS are defining objects, this happens. We added fix to main class earlier but forgot to add in sub selectors. Will be fixed shortly

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.