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

fix(Touchable): add maybe types to touchable props #1231

Closed

Conversation

pladaria
Copy link
Member

@pladaria pladaria commented Sep 2, 2024

Copy link

github-actions bot commented Sep 2, 2024

Size stats

master this branch diff
Total JS 12.1 MB 12.1 MB 0 B
JS without icons 2.03 MB 2.03 MB 0 B
Lib overhead 77.1 kB 77.1 kB 0 B
Lib overhead (gzip) 18.9 kB 18.9 kB 0 B

Copy link

github-actions bot commented Sep 2, 2024

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

Copy link

github-actions bot commented Sep 2, 2024

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-7xblvon3t-flows-projects-65bb050e.vercel.app

Built with commit 526cbde.
This pull request is being automatically deployed with vercel-action

@@ -62,3 +64,9 @@ import Chip from '../chip';
<Chip to="/" onClose={() => {}}>
hello
</Chip>;

const ChipMaybeOnPress = ({text, onPress}: {text: string; onPress?: PressHandler}): JSX.Element => (
<Chip maybe onPress={onPress}>
Copy link
Collaborator

Choose a reason for hiding this comment

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

It feels weird to see something like <Chip maybe/>. Perhaps we could consider something like maybeTouchable or maybeInteractive.

Also, this would require to add maybe in all the problematic scenarios. I'm not sure this really solves the issue. I think leaving it as it is won't be a big issue.

Let's discuss this a bit better in the next weekly

@pladaria
Copy link
Member Author

Discarded for now

@pladaria pladaria closed this Sep 11, 2024
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.

3 participants