Skip to content

Conversation

@binlabs
Copy link

@binlabs binlabs commented Dec 24, 2025

The Motion: Todo List Transitions example has broken for several months now due to 404s that are occurring when pulling in the Material Web components that this example uses.

See #1429

I tried bumping the version of those packages but faced the same error.

In this PR I simply replaced the MWC elements with their native equivalents. I tried to make the minimum possible change to get this example working again.

Screenshot 2025-12-23 at 10 44 25 PM

Tested and working on Mac in recent versions of Firefox, Safari, Edge and Chrome.

I did have two questions:

  1. This example was the only place in the entire repo that uses mwc checkbox, formfield, and textfield. Should I remove those 3 dependencies and regenerate the main package lock?
  2. Should I add a little styling to make it look a tiny bit better (e.g. styling to make it more obvious what the remove button does?

@google-cla
Copy link

google-cla bot commented Dec 24, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@binlabs
Copy link
Author

binlabs commented Dec 24, 2025

It just occurred to me the reason why the MWC components weren't working - they probably just need to be updated to use the newer @material/web package.

If you'd rather I do that instead of use native elements like I did in this PR, let me know and I can make that change.

@justinfagnani
Copy link
Contributor

Thanks for looking at this @binlabs!

I'm not sure why existing packages would break like this, that's unfortunate.

I personally would go for fewer dependencies so there's less likely to be a break like this in the future. We can add some minimal styles to make the native controls look nice for the demo (which maybe you did already).

@sorvell wdyt?

@binlabs binlabs force-pushed the fix/motion-todo-example branch 2 times, most recently from 6f840bc to ba328b3 Compare December 24, 2025 19:33
@binlabs binlabs force-pushed the fix/motion-todo-example branch from ba328b3 to e969c68 Compare December 24, 2025 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants