Problem/Motivation

I've done this in a not so great way, I'm still familiarizing myself with the cookies module and I may have missed something.
With that said, this is working, although it would be better if I found a better way than inserting the title using the document.addEventListener('cookiesjsrUserConsent', function

Steps to reproduce

See patch, make it better please.

Proposed resolution

Review the patch, fix this implementation, it is a rough first draft from someone unfamiliar with cookiesjsr.

Remaining tasks

Improve the patch

User interface changes

Adds a banner title h2 element above the information paragraph on the very first dialog when there's no refusal or consent cookie written.

API changes

TBD

Data model changes

TBD

Comments

joseph.olstad created an issue. See original summary.

joseph.olstad’s picture

StatusFileSize
new2.96 KB
joseph.olstad’s picture

Assigned: joseph.olstad » Unassigned
Status: Active » Needs work

Patch above IS working, however setting to needs work as it should be improved.

anybody’s picture

Priority: Normal » Minor
Status: Needs work » Postponed

Thanks @joseph.olstad this indeed looks a bit hacky. The real solution would be to replace the react banner by an open source one (propably vue or svelte, there's an issue for that) so it can be modified.

Setting the status here to postponed, but should be "won't fix" in real. Still anyone who needs this, can use the patch. Thank you :)

joseph.olstad’s picture

StatusFileSize
new2.97 KB

Fix for translations, use cookiesjsr.translation.bannerText not cookieTexts.bannerText

anybody’s picture

Version: 1.2.x-dev » 2.x-dev
Assigned: Unassigned » jfeltkamp

Eventually fixable in 2.x?