Closed craigharman closed 4 months ago
Summary
Clicking an accordion button to open it doesn't rotate the ^
Steps to Reproduce
- Copy the accordion HTML from this example: https://preline.co/docs/accordion.html#with-title-and-arrow-stretched
- Install preline via
npm i preline
- Import via
import preline from 'preline/dist/preline'
- Load the page
Demo Link
https://codesandbox.io/p/devbox/competent-thompson-fcfyzj?file=/src/index.mjs:3,1&welcome=true
Expected Behavior
The ^ character should turn upside down when a panel is opened (like it does on the demo page).
Actual Behavior
The character stays the same.
All other behaviour works as expected.
Screenshots
No response
Hi,
It seems you forgot to add the preline/plugin.js
file to the the tailwind.config.js
.
export default {
content: ["src/index.html"],
theme: {},
plugins: [require("./node_modules/preline/plugin")],
};
I've added that to the demo via:
import preline from 'preline/plugin'
export default {
content: ["src/index.html"],
theme: {},
plugins: [preline],
};
Still doesn't seem to work.
Summary
Clicking an accordion button to open it doesn't rotate the ^
Steps to Reproduce
npm i preline
import preline from 'preline/dist/preline'
Demo Link
https://codesandbox.io/p/devbox/competent-thompson-fcfyzj?file=/src/index.mjs:3,1&welcome=true
Expected Behavior
The ^ character should turn upside down when a panel is opened (like it does on the demo page).
Actual Behavior
The character stays the same.
All other behaviour works as expected.
Screenshots
No response