Skip to content

Commit

Permalink
feat: make transition delay arbitrary
Browse files Browse the repository at this point in the history
  • Loading branch information
arlyon committed Jan 19, 2023
1 parent 9783916 commit f6d7a79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/tailwind-parse/src/eval/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ lookup_plugin_arbitrary!(stroke_color, colors, "stroke");
merge_plugins_arbitrary!(stroke, stroke_width, stroke_color);

lookup_plugin_opt!(transition, transition_property, "transitionProperty");
lookup_plugin!(delay, transition_delay, "transitionDelay");
lookup_plugin_arbitrary!(delay, transition_delay, "transitionDelay");
lookup_plugin_opt!(duration, transition_duration, "transitionDuration");
lookup_plugin_opt!(ease, transition_timing_function, "transitionTimingFunction");
lookup_plugin_opt!(blur, blur, "filter", |s| format!("blur({s})"));
Expand Down
2 changes: 1 addition & 1 deletion crates/tailwind-parse/src/literal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ impl<'a> Literal<'a> {
Shadow => Optional(plugin::shadow),
Transition => Optional(plugin::transition),
Placeholder => Required(plugin::placeholder),
Delay => Required(plugin::delay),
Delay => RequiredArbitrary(plugin::delay),
Duration => Optional(plugin::duration),
Rotate => Required(plugin::rotate),
Appearance => Required(plugin::appearance),
Expand Down

0 comments on commit f6d7a79

Please sign in to comment.