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

Accordion missing transition #317

Closed
sergeydus opened this issue Sep 10, 2024 · 5 comments
Closed

Accordion missing transition #317

sergeydus opened this issue Sep 10, 2024 · 5 comments

Comments

@sergeydus
Copy link

sergeydus commented Sep 10, 2024

When opening/closing an component, there is supposed to be a transition animation

example:
https://stackblitz.com/edit/4q9e8a?file=src%2Fmain.js

this is a fork from the tailwind accordion page, for some reason it works fine on the website, but on blitzstack it the transition doesn't work, (locally doesn't work aswell)

version: 4.0.5

@atakantepe
Copy link
Member

Hi, it seems like you might be missing the tailwindcss-primeui plugin. The animation classes are added using this plugin.

/** @type {import('tailwindcss').Config} */
const primeui = require('tailwindcss-primeui');

module.exports = {
    darkMode: ['selector', '[class*="p-dark"]'],
    content: ['./presets/**/**/*.{js,vue,ts}', './components/**/*.{js,vue,ts}', './doc/**/*.{js,vue,ts}', './layouts/**/*.vue', './pages/**/*.vue', './plugins/**/*.{js,ts}', './nuxt.config.{js,ts}', './app.vue', './error.vue'],
    plugins: [primeui],
    theme: {
        screens: {
            sm: '576px',
            md: '768px',
            lg: '992px',
            xl: '1200px',
            '2xl': '1920px'
        }
    }
};

@atakantepe
Copy link
Member

If this is not the solution, you can re-open this issue

@sergeydus
Copy link
Author

sergeydus commented Sep 27, 2024

@atakantepe maybe im missing something, but in the example I provided the plugin IS being used.
this is literally the same code used in the stackblitz examples in https://tailwind.primevue.org/accordion/

however, there's a difference, I have // import StepperPanel from 'primevue/stepperpanel'; commented out

how do I reopen the issue?

@atakantepe atakantepe reopened this Sep 28, 2024
@ITSFerroli
Copy link

same

@cagataycivici
Copy link
Member

As of v4.1.1, the new Tailwind styles have been rewritten using the preprocessor approach with @apply instead of pass-through. As a result this issue is not relevant any more.

New Website is live.

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

No branches or pull requests

4 participants