-
Notifications
You must be signed in to change notification settings - Fork 10
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
Conversation
Size stats
|
Accessibility report ℹ️ You can run this locally by executing |
Deploy preview for mistica-web ready! ✅ Preview Built with commit 526cbde. |
@@ -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}> |
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.
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
Discarded for now |
https://jira.tid.es/browse/WEB-1936