Nutritious Polygonal Meatball
    Have ideas to improve npm?Join in the discussion! »

    @economist/component-cookie-message

    4.3.0 • Public • Published

    component-cookie-message

    The cookie-message component displays an EU cookie warning in the absence of a cookie named ec_cookie_message_0.

    The cookie is set to 1 upon first load.

    The message will not display in the test page if the cookie is set. This code will clear it:

    document.cookie='ec_cookie_message_0'+'=;Max-Age=0'

    Accepted CSS variables:

    • --cookiemessage-vertical-padding
    • --cookiemessage-horizontal-padding
    • --cookiemessage-min-height
    • --cookiemessage-link-hover

    Keywords

    none

    Install

    npm i @economist/component-cookie-message

    DownloadsWeekly Downloads

    23

    Version

    4.3.0

    License

    MIT

    Last publish

    Collaborators

    • avatar