We are using Lightning out with Visualforce page to allow users to override standard button of specific object.
Now we are planning to use a Lightning component to be used as a override option for standard buttons directly, which can be done from below highlighted setting.
Note: One issue with components is if its directly used to override as Lightning Component Bundle, it does not works in Classic. But we still want users to have an ability to do so.
Problem: The component is still available as an option in other objects.
Try 1: Option suggested by Brian in this answer, its still available for other objects, basic markup is as follows:
<aura:component description="TestOverride" implements="lightning:actionOverride"> <p>Basic component</p> </aura:component>
<design:component> <sfdc:objects> <sfdc:object>Contact</sfdc:object> </sfdc:objects> </design:component>
Please share some thoughts if this seems possible.