-
Notifications
You must be signed in to change notification settings - Fork 0
docs: remove false animate-[...] arbitrary-value section (#83) #88
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,6 @@ Utilities for animating elements with CSS-like animation classes. Whether you're | |
| - [Bounce](#bounce) | ||
| - [Responsive Design](#responsive-design) | ||
| - [Dark Mode](#dark-mode) | ||
| - [Arbitrary Values](#arbitrary-values) | ||
| - [Customizing Theme](#customizing-theme) | ||
| - [Related Documentation](#related-documentation) | ||
|
|
||
|
|
@@ -114,15 +113,6 @@ Animations work seamlessly with dark mode. You'll typically just change the colo | |
| WDiv(className: 'animate-pulse bg-gray-200 dark:bg-gray-700') | ||
| ``` | ||
|
|
||
| <a name="arbitrary-values"></a> | ||
| ## Arbitrary Values | ||
|
|
||
| If the built-in animations don't quite fit, you can use arbitrary values to specify custom animation strings. | ||
|
|
||
| ```dart | ||
| WDiv(className: 'animate-[wiggle_1s_ease-in-out_infinite]') | ||
| ``` | ||
|
|
||
| <a name="customizing-theme"></a> | ||
| ## Customizing Theme | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This section (the PR's stated "correct extension path") has a bug in its own example.
// animation_parser.dart:40
context.theme.animations.containsKey(className)The defaults confirm the key format ( 'animate-spin': WindAnimationType.spin,
'animate-ping': WindAnimationType.ping,
// ...The example below this heading uses // WRONG (current)
WindThemeData(animations: {'wiggle': WindAnimationType.bounce})
// CORRECT
WindThemeData(animations: {'animate-wiggle': WindAnimationType.bounce})This needs fixing before the PR lands — otherwise removing the arbitrary-values section and pointing to this section is a net-zero improvement for users. |
||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CLAUDE.md rule: "one-line bullet per change." This reads as two sentences; the trailing sentence about the Customizing Theme section is guidance, not a description of the change itself. The issue ref
(#83)is correct.