Adaptive color not working
See original GitHub issueI’ve forked the hosted example and changed the scrollable area to have a black background. I’ve also changed the --focus-primary
var to black.
https://codesandbox.io/s/bold-sun-lx1im?file=/public/index.html
The focus ring should be adapting and showing a visible focus ring in this case right? At the moment it’s still just creating a black focus ring.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7
Top Results From Across the Web
Armoury Crate Not Picking Up Adaptive Color : r/ASUS - Reddit
I am trying to use the Adaptive Color setting to have everything match my Wallpaper Engine ... Armoury Crate is not changing the...
Read more >[ASUS Aura Creator] Aura Creator FAQ | Official Support
Aura Creator will get one color from the selected area as the “Adaptive Color” - you can decide to show the average color...
Read more >Pixel 6 Adaptive color quit working after March update
After updating my Pixel 6 in late March both adaptive color and boosted color quit working. Colors appear washed out especially in the ......
Read more >Turn On Adaptive Color on Your Echo Show - Amazon.com
Say, "Go to settings," or swipe down from the top of the screen and select Settings. Select Display. Use the switch to turn...
Read more >Flutter Switch.Adaptive() not applying color to the cupertino ...
SwitchListTile.adaptive( value: false, activeColor: Colors.green, onChanged: (bool value) {}, title: Text( 'Vegetarian', style: TextStyle( ...
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
@Thisisjuke I think the behavior you’re seeing there, where the ring “detaches” from the element that it’s supposed to be tracking, is likely because you’re missing a
FocusRingScope
on the inside of the scrolling component. Without that, the ring renderer doesn’t think that anything is moving when you scroll, so you get this static-looking ring while everything else moves.Something like:
should make the rings track the elements properly.
To your original question, if you want to just disable the ring while the scrolling happens, you can also pass the
disabled
prop to theFocusRing
around the element itself, which will prevent it from rendering at all when set.We will probably add some flexibility for being able to inject a “best color selector” function or the like in the future, but hopefully one or both of those solutions is sufficient for your use case.
@faultyserver @dougmacknz Hello, there is a PR open since Dec 2, 2021. Can we have a status on this PR please ?