Skip to content

Make @cookieconsentbutton more customizable #43

Open
@ReimundR

Description

@ReimundR

Yet it is possible to customize the button only to some extent.
I need to add tooltips and symbol instead of button text.

E.g.

@cookieconsentbutton(action: 'reset', label: '<i class="material-icons" style="font-size: 2em">shield</i>',
  attributes: ['id' => 'reset-button', 'class' => 'btn fixed-bottom cookie-reset'],
  btnattributes: ['class' => 'btn bg-transparent', 'style' => 'margin-left: 5px; margin-bottom:5px',
    'data-toggle' => 'tooltip', 'title' => __('cookieConsent::cookies.manage')])

I added a pull request #42 for that.
Hope it finds a way to the main code. @toonvandenbos fell free to check and adapt, as you have better insight into the code.
Thanks for your work and support!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions