Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

more customization for @cookieconsentbutton #42

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

raymanP
Copy link

@raymanP raymanP commented Apr 10, 2024

  • added btnattributes for @cookieconsentbutton to allow button customizing
  • removed button label escaping to allow html labels

Example:

@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')])

Covers #43

…ing, removed button label escaping to allow html labels
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants