Popper arrow doesn't respect theme
See original GitHub issue- This is not a v0.x issue.
- I have searched the issues of this repository and believe that this is not a duplicate.
Expected Behavior 🤔
When configuring the Popper
component to display a pointer arrow, I expect the arrow will respond to theme changes, e.g. If my application is using a light theme I expect the Popper body and arrow to be white (in my case), however in dark mode the arrow remains white, despite the body of the Popper updating to black/grey.
Current Behavior 😯
Changing from light to dark theme does not update the Popper arrow, it remains white as in the light theme.
Steps to Reproduce 🕹
The issue can be reproduced via the live example in the MUI docs
- Using the scroll playground example, configure the popper to display a pointer arrow
- Switch the site to use the dark theme
- Open the popper in the scroll playground example
- Note the colour of the pointer arrow
Your Environment 🌎
Tech | Version |
---|---|
Material-UI | v4.1.3 |
React | v16.8.6 |
Browser | Chrome |
TypeScript | Not used |
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Popper arrow doesn't respect theme · Issue #16545 - GitHub
Using the scroll playground example, configure the popper to display a pointer arrow · Switch the site to use the dark theme ·...
Read more >Example of using arrow in Popper component of material-ui
Make a styled Popper, as Popper doesn't support sx prop. const StyledPopper = styled(Popper)(({ theme }) => ({ ...
Read more >React Popper component - Material UI - MUI
This component should respect the following conditions: Be a direct child descendent of the popper. Call the onEnter callback prop when the enter...
Read more >Arrow | Popper
The arrow modifier positions an inner element of the popper so it appears centered relative to the reference element, usually the triangle or...
Read more >Notes | Time's Arrow & Archimedes' Point: New Directions for the ...
Even if it is an option with respect to the traditional secondary qualities, it may not be with respect to other concepts, which—though...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Absolutely, will do @oliviertassinari !
@fraser-mcmillan Thanks for the report. The arrow color is hard-coded. What do you think of?