Home Forums WoodMart support forum Klarna Popup Modal using var(–colorBackground) where is that coming from?

Klarna Popup Modal using var(–colorBackground) where is that coming from?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #656718

    jasonUk44
    Participant

    When I click the standard ‘Learn More’ link in the Klarna checkout the popup is unreadable as its pulling the colours from the Woodmart theme some where but I cannot locate the colours or where it’s coming from. I cannot style it externally as it’s within an iframe and the CSS wont penetrate it.

    this is the CSS its using and the section thats bold ( background ) is the var(–colorBackground) its pulling from but I cant find that colour or referees anywhere..

    .p-PaymentMethodMessagingModal {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background-color: var(–colorBackground);
    border-radius: 20px;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Ubuntu, sans-serif;
    left: 50%;
    letter-spacing: var(–letter-spacing);
    max-height: 655px;
    max-width: 571px;
    padding: 24px;
    position: absolute;
    top: 50%;
    width: 100%;
    z-index:10

    Attachments:
    You must be logged in to view attached files.
    #656971

    Luke Nielsen
    Keymaster

    Hello,

    The theme cannot affect the CSS in the iframe. This https://prnt.sc/RkTEV8KVU2yw variable is related to the iframe – https://prnt.sc/BjLJQdpliFHp , https://prnt.sc/UCKfXBNlX7HI

    So I suggest you contact the plugin support or check their documentation on how to change that color as the our theme cannot affect that area.

    Kind Regards

    #657052

    jasonUk44
    Participant

    Ive logged into the site this morning and all the colours have changed. Ive now go a random set of colours in the cart and the darker popup now shows lighter text.. Ive not altered anything at all.

    Please advise if you have changed anything at all as it’s now worse.

    • This reply was modified 5 hours, 36 minutes ago by jasonUk44.
    Attachments:
    You must be logged in to view attached files.
    #657066

    Luke Nielsen
    Keymaster

    Hello,

    I didn’t log in to the site today. That form is situated in the iframe as well – https://prnt.sc/VXCdfoJtmR7Q

    Check the article below on how to change the style of the form:

    https://woocommerce.com/document/stripe/customization/style-payment-form/

    Kind Regards

Tagged: , ,

Viewing 4 posts - 1 through 4 (of 4 total)