-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Problem The padding controls cannot be used to read/write values in projects that use Tailwind for styling. ## Fix Use the style plugins and the `StyleInfo` system to make this possible. Specifically, - Add the padding shorthand prop/padding longhand prop to the `StyleInfo` interface - Update `InlineStylePlugin` and `TailwindStylePlugin` to support the new props in `StyleInfo` - Refactor the padding strategy, the padding control handle and the subdued padding control to read element styles through a `StyleInfoReader` instance - Add a new property patcher in `style-plugins@patchers` to take care of patching removed padding props - Add tests with a tailwind project to the padding strategy test suite ### Out of scope The jump in the bounding box after the interaction ends ([video](https://screenshot.click/14-02-e9ktf-say96.mp4)) will be addressed on a follow-up PR ### Manual Tests I hereby swear that: - [x] I opened a hydrogen project and it loaded - [x] I could navigate to various routes in Play mode
- Loading branch information
Showing
11 changed files
with
222 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.