question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow to change Popover popper style on a per-basis Popover

See original GitHub issue

Description

I would like to change the style of only some popovers I have.

Currently, I have to change the style in the theme. But this changes the style of every popover I have. I would like to rather do this:

<Popover maxW="unset" w="unset">
    ...
</Popover

Problem Statement/Justification

I would like to change the style of only some popovers I have.

Proposed Solution or API

Allow something like:

<Popover maxW="unset" w="unset">
    ...
</Popover

Alternatives

No response

Additional Information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Venipacommented, Dec 12, 2021
<PopoverContent as={React.Fragment}>
// card div with your stylings etc, might need transition handling with isOpen prop
</PopoverContent>
0reactions
segunadebayocommented, Oct 25, 2021

Hi @lcswillems,

You should pass style props to the PopoverContent directly not the Popover component. Here’s an example:

<PopoverContent  width="unset" />
Read more comments on GitHub >

github_iconTop Results From Across the Web

Popovers - Bootstrap
Documentation and examples for adding Bootstrap popovers, like those found in iOS, to any element on your site.
Read more >
css - Changing the width of Bootstrap popover - Stack Overflow
Spent quite some time searching for an answer and found my own solution: Add following text to the head: <style type="text/css"> .popover{ max-width:600px;...
Read more >
How to Build a Dynamically Positioned Popover ... - YouTube
The popper.js library is a powerful positioning engine for tooltips ... This will allow anyone to create a popover using Divi elements to ......
Read more >
Popover - Chakra UI
Popover is built on top of the Popper.js library. Import#. Popover : The wrapper that provides props, state, and context to its children....
Read more >
How to Build a Dynamically Positioned ... - Elegant Themes
Notice how the position of the popover changes dynamically as the user scrolls or ... Now let's add some styling to our button...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found