Describe the feature
Describe the bug
The module does not provide a way to set a title or description for the modal via the cookieControl config. Even when isModalForced: true, the modal opens but only displays the cookie list; there is no header or descriptive text. This makes it impossible to customize the modal content without overriding it entirely via slots.
To Reproduce
Steps to reproduce the behavior:
- Configure
cookieControl in nuxt.config.ts with isModalForced: true and attempt to add modal: { title: 'My Title', description: 'My Description' }.
- Run the Nuxt 3 application.
- Open the modal; it only shows the list of cookies without any title or description.
Expected behavior
I would expect the module to support modal title and description via the config, similar to how the cookie bar supports name and description.
Additional context
Currently, the only way to add a title or description is by overriding the #modal slot in Vue, which is inconvenient and makes reusing the module harder. It would be helpful to support modal.title and modal.description in the configuration itself.
Additional information
Final checks
Describe the feature
Describe the bug
The module does not provide a way to set a title or description for the modal via the
cookieControlconfig. Even whenisModalForced: true, the modal opens but only displays the cookie list; there is no header or descriptive text. This makes it impossible to customize the modal content without overriding it entirely via slots.To Reproduce
Steps to reproduce the behavior:
cookieControlinnuxt.config.tswithisModalForced: trueand attempt to addmodal: { title: 'My Title', description: 'My Description' }.Expected behavior
I would expect the module to support modal title and description via the config, similar to how the cookie bar supports
nameanddescription.Additional context
Currently, the only way to add a title or description is by overriding the
#modalslot in Vue, which is inconvenient and makes reusing the module harder. It would be helpful to supportmodal.titleandmodal.descriptionin the configuration itself.Additional information
Final checks