Skip to content

Commit

Permalink
fix(Primitive): slot prevents out transition for non-modal dropdown a…
Browse files Browse the repository at this point in the history
…nd select components (#801)

* fix: slot prevents out transition for non-modal dropdown and select components

* chore: add out animations to dropdown story component with tailwindcss-animate
  • Loading branch information
MellKam committed Apr 1, 2024
1 parent bef617e commit 94d09a7
Show file tree
Hide file tree
Showing 5 changed files with 126 additions and 244 deletions.
3 changes: 2 additions & 1 deletion .histoire/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"eslint": "^8.56.0",
"histoire": "^0.17.14",
"postcss": "^8.4.33",
"tailwindcss": "^3.4.1"
"tailwindcss": "^3.4.1",
"tailwindcss-animate": "1.0.7"
},
"peerDependencies": {
"@vitejs/plugin-vue": "*",
Expand Down
6 changes: 4 additions & 2 deletions .histoire/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { blackA, green, grass, mauve, slate, violet, red, indigo, purple, teal } = require("@radix-ui/colors");
const plugin = require("tailwindcss/plugin");
import { blackA, green, grass, mauve, slate, violet, red, indigo, purple, teal } from "@radix-ui/colors";
import plugin from "tailwindcss/plugin";
import animate from "tailwindcss-animate";

/** @type {import('tailwindcss').Config} */
export default {
Expand Down Expand Up @@ -158,6 +159,7 @@ export default {
},
},
plugins: [
animate,
plugin(({ matchUtilities }) => {
matchUtilities({
perspective: (value) => ({
Expand Down

0 comments on commit 94d09a7

Please sign in to comment.