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
Comment #2
joseph.olstadComment #3
joseph.olstadPatch above IS working, however setting to needs work as it should be improved.
Comment #4
anybodyThanks @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 :)
Comment #5
joseph.olstadFix for translations, use cookiesjsr.translation.bannerText not cookieTexts.bannerText
Comment #6
anybodyEventually fixable in 2.x?