Skip to content
This repository has been archived by the owner on Mar 4, 2020. It is now read-only.

Popup: the PopupContent inside the Popup cannot be styled or augmented with some user defined props #312

Closed
mnajdova opened this issue Oct 4, 2018 · 0 comments

Comments

@mnajdova
Copy link
Contributor

mnajdova commented Oct 4, 2018

Feature Request

Problem description

The content of the Popup cannot be styled using any props in the Popup. Moreover the user cannot provide any properties to that component at all. In order to style it, the user have to wrap it with Provider and provide the styles for the PopupContent component there in the following manner:

<Provider theme={{ componentStyles: { PopupContent: { root: { marginLeft: '10px' } } } }}>
  <Popup
    {...props}
  />
</Provider>

Proposed solution

The PopupContent should be shorthand inside the Popup so that the user can apply any properties they want on that slot of the component.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant