-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
feat: add disabledButtonTintColor
prop in ActionSheetIOS
#46883
Conversation
Hi @henninghall! Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks! |
disabledButtonTintColor
prop in ActionSheetIOS
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@cortinico I there anything I can do to get someone to take a look at this PR? 🙏 |
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.
This looks good, thanks for the contribution
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Commented on the imported PR but wondering about this
Could we change ActionSheetIOS to not set the same tintColor to disabled entries? Or is that out of our control? |
In addition, if a user didn't set |
@lunaleaps this will break other apps that depend on the color being set. |
Would it be worth a breaking change? Or is this component something we don't want to actively support? Overall I'd say my comments aren't blocking but since we're looking at this anyway |
This would be a subtle breaking change, because it's just a behavioral one. So it easier for it to go unnoticed. I'd rather to avoid breaking the component to avoid the confusion.
So far, we are supporting it. However, it is an amazing candidate to go into Lean Core 2.0. |
@cipolleschi merged this pull request in 089c87e. |
This pull request was successfully merged by @henninghall in 089c87e When will my fix make it into a release? | How to file a pick request? |
Summary:
Problem
Setting the
tintColor
prop in ActionSheetIOS also changes the tint of disabled entries. This could make them visually indistinguishable from enabled items. The degree to which they are indistinguishable depends on the tint color.Solution
This new prop
disabledButtonTintColor
allows customization of disabled items' tint color.Related PR: #31972
Changelog:
[IOS] [ADDED] - added
disabledButtonTintColor
prop to ActionSheetIOSTest Plan:
Tested in RNTester project.