You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is a base class with a :focus pseudo class that sets a garish border/background combination. There are then two subclassed widgets. One (NonNestedCSS) overrides the garish :focus with something nicer using a non-nested CSS approach. There is another (NestedCSS) which overrides the garish :focus using nested CSS. When the above code is run with 0.47.0 you'll see that NonNestedCSS overrides the :focus rules just fine; on the other hand the :focus rules for NestedCSS seem to be ignored.
It feels like there should be no difference here. Initially flagging this up as something to clarify, but perhaps also a bug.
Tagging @willmcgugan for triage as it relates to a new feature.
The text was updated successfully, but these errors were encountered:
In part this was intended to switch things up to using nested CSS where
possible, to see how well it works in the field. It did throw up one
possible bug:
Textualize/textual#3961
and I also can't get the token input dialog to use nested CSS without things
going crazy wrong; I need another run at that to try and isolate what's
going on and perhaps get it down to a MRE if it's a genuine bug.
Consider this code:
There is a base class with a
:focus
pseudo class that sets a garish border/background combination. There are then two subclassed widgets. One (NonNestedCSS
) overrides the garish:focus
with something nicer using a non-nested CSS approach. There is another (NestedCSS
) which overrides the garish:focus
using nested CSS. When the above code is run with 0.47.0 you'll see thatNonNestedCSS
overrides the:focus
rules just fine; on the other hand the:focus
rules forNestedCSS
seem to be ignored.It feels like there should be no difference here. Initially flagging this up as something to clarify, but perhaps also a bug.
Tagging @willmcgugan for triage as it relates to a new feature.
The text was updated successfully, but these errors were encountered: