Skip to content

Commit

Permalink
chore(autocomplete): css transition visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
chirokas committed Jun 11, 2024
1 parent 0e9c104 commit 728e4d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/core/theme/src/components/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const autocomplete = tv({
selectorButton: "transition-none",
},
false: {
clearButton: "transition-transform-colors-opacity-visibility",
selectorButton: "transition-transform duration-150 ease motion-reduce:transition-none",
},
},
Expand Down
6 changes: 6 additions & 0 deletions packages/core/theme/src/utilities/transition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ export default {
"transition-timing-function": "ease",
"transition-duration": DEFAULT_TRANSITION_DURATION,
},
".transition-transform-colors-opacity-visibility": {
"transition-property":
"transform, color, background, background-color, border-color, text-decoration-color, fill, stroke, opacity, visibility",
"transition-timing-function": "ease",
"transition-duration": DEFAULT_TRANSITION_DURATION,
},
};

0 comments on commit 728e4d5

Please sign in to comment.