Skip to content
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

refactor: item interactive to pressable #5089

Merged
merged 1 commit into from
Mar 18, 2024

Conversation

fbwoolf
Copy link
Contributor

@fbwoolf fbwoolf commented Mar 16, 2024

Try out this version of Leather — Extension build, Test report, Storybook preview

This PR refactors ItemInteractive to use a styled.button rather than a Box component. I also used this issue to rename the component to Pressable and separated the files from the ItemLayout component. Open to pushback on these changes, but thought it would be more inline with sharing components with mobile.

@fbwoolf fbwoolf linked an issue Mar 16, 2024 that may be closed by this pull request
Copy link
Collaborator

@kyranjamie kyranjamie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pressable

Open to pushback on these changes, but thought it would be more inline with sharing components with mobile.

LGTM @fbwoolf, great decision to separate Pressable from LayoutItem. Renaming highlights how they're completely unrelated.

@kyranjamie kyranjamie force-pushed the refactor/item-interactive-to-pressable branch from 09c2049 to 96320af Compare March 18, 2024 09:24
@kyranjamie
Copy link
Collaborator

Rebasing for storybook link

@fbwoolf fbwoolf added this pull request to the merge queue Mar 18, 2024
Merged via the queue into dev with commit faa3a79 Mar 18, 2024
28 checks passed
@fbwoolf fbwoolf deleted the refactor/item-interactive-to-pressable branch March 18, 2024 13:55
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.

Convert InteractiveItem back to a styled.button
2 participants