builder icon indicating copy to clipboard operation
builder copied to clipboard

{all : unset} taking higher specificity

Open we-surinder-s001 opened this issue 1 year ago • 9 comments
trafficstars

@samijaber When ever I create a button with builder.io the styling on it doesn't work because {all: 'unset'} property is taking higher specificity.

Steps to reproduce the behavior:

  1. Create a new button with builder.io tool bar.
  2. default style will not be applied
  3. public the changes.
  4. now check in the inspect that the {all: unset} property is already taking higher specificity that the other stylings.

Expected behavior button should have some of its stylings and when ever I do any changes in the styling it should reflect there

Screenshots image

we-surinder-s001 avatar Jan 19 '24 05:01 we-surinder-s001

Thanks @we-surinder-s001 , we are aware of the bug and looking for a solution.

samijaber avatar Jan 19 '24 14:01 samijaber

@samijaber thanks for replying.

we-surinder-s001 avatar Jan 22 '24 04:01 we-surinder-s001

Still not working with svelte

image

wieseljonas avatar Apr 24 '24 12:04 wieseljonas

For now I've implemented it with HTML API on svelte like so

    {/if}    {#if headerHTMLBlock?.data?.html}
      {@html headerHTMLBlock?.data?.html.replace('all:unset', '')}
    {/if}

    {#if isPreviewingHeader}
      <builder-component
        model="price-page-header-block"
        api-key="5a1025ed9ae1451ebd7362f95b4b0486"
      />
    {/if}

wieseljonas avatar Apr 24 '24 21:04 wieseljonas

@wieseljonas What version of the Svelte SDK are you using? Could you provide the content URL (like https://builder.io/content/:id) to the content in that screenshot?

samijaber avatar Apr 25 '24 18:04 samijaber

It’s the latest version and big arises only if I add the button

Jonas Wiesel Associé +41 79 737 72 17 @.***

www.realadvisor.ch https://realadvisor.ch RealAdvisor SA +41 22 775 05 05 Route de Saint-Julien 198 1228 Plan-les-Ouates

On Thu, 25 Apr 2024 at 20:33, Sami Jaber @.***> wrote:

@wieseljonas https://github.com/wieseljonas What version of the Svelte SDK are you using? Could you provide the content URL (like https://builder.io/content/:id) to the content in that screenshot?

— Reply to this email directly, view it on GitHub https://github.com/BuilderIO/builder/issues/2926#issuecomment-2077916140, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAILOLLUNBGIJHITZQ6FJZ3Y7FD6ZAVCNFSM6AAAAABCBLVC2OVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXHEYTMMJUGA . You are receiving this because you were mentioned.Message ID: @.***>

wieseljonas avatar Apr 25 '24 18:04 wieseljonas

I see, thanks. Could you provide the content URL (like https://builder.io/content/:id) to the content in that screenshot, so we can debug this further?

samijaber avatar Apr 25 '24 18:04 samijaber

https://builder.io/content/9d337de407424776a235582e82465612

wieseljonas avatar Apr 26 '24 09:04 wieseljonas

here it's working because I remove all:unset manually after the request

image

wieseljonas avatar Apr 26 '24 09:04 wieseljonas