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

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

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

raphaelbernhart
Copy link

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
Copy link
Author

raphaelbernhart commented Sep 18, 2024

@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 :)

Copy link
Owner

@dargmuesli dargmuesli left a comment

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 🤟

.husky/commit-msg Show resolved Hide resolved
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
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?

Copy link
Author

@raphaelbernhart raphaelbernhart Sep 19, 2024

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

src/runtime/components/CookieControl.vue Show resolved Hide resolved
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