Skip to content

Draft: Cookie Control rewrite (use new dialog component)#233

Draft
raphaelbernhart wants to merge 5 commits into
dargmuesli:mainfrom
raphaelbernhart:use-new-dialog-component
Draft

Draft: Cookie Control rewrite (use new dialog component)#233
raphaelbernhart wants to merge 5 commits into
dargmuesli:mainfrom
raphaelbernhart:use-new-dialog-component

Conversation

@raphaelbernhart

Copy link
Copy Markdown

DRAFT:
This MR is still in draft, it serves just as a preview.

📚 Description

This is the MR for the following issues and disucssions:

📝 Checklist

  • All commits follow the Conventional Commit format
  • The PR's title follows the Conventional Commit format

@raphaelbernhart

raphaelbernhart commented Sep 18, 2024

Copy link
Copy Markdown
Author

@dargmuesli Here is a preview of the mentioned issues. This is not ready so keep in mind that maybe not everything is working.

not included so far:

  • more classes so that component can be edited via tailwind
  • finished styling

what is included:

  • separated CookieControl.vue into multiple components
  • added tailwindcss support
  • added headless-ui modal and switches
  • disable scrolling feature

Preview: https://stackblitz.com/~/github.com/raphaelbernhart/nuxt-cookie-control

Please check the preview and give feedback, thanks :)

@dargmuesli dargmuesli left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Keep on rocking this 🤟

Comment thread .husky/commit-msg Outdated
Comment thread src/module.ts
Comment on lines +57 to +71
// module configuration
exposeConfig: true,
viewer: false,
config: {
theme: {
extend: {
colors: moduleOptions.colors as unknown as any,
},
},
darkMode: 'class',
content: [
resolver.resolve('./runtime/**/*.{vue,mjs,ts}'),
resolver.resolve('./runtime/*.{mjs,js,ts}'),
],
},

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this config merge with a user's tailwind configuration in the downstream projects?

@raphaelbernhart raphaelbernhart Sep 19, 2024

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is one of the main things I still have to check. Not sure atm

Comment thread src/runtime/components/CookieControl.vue Outdated
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