# 3.5.1 implementation of style change on component focus

blandrp
72 2

Many of the components such as Textbox in 3.5.1 now support a -focus style when they receive the focus. It appears that Datebox is also attempting to do this, but instead of changing the style of the actual input element from z-datebox-inp to z-datebox-inp-focus the style of the span around the input element is being changed. Is this a bug or is it working as designed? I expected the actual input element's style to be changed similar to the changing of the style of the input element that represents Textboxes, Decimalboxes, etc.

delete retag edit

jumperchen
3909 2 8
http://jumperchen.blogspo...

Hi,

It isn't a bug, it uses the cascading hierarchy to do it.

For example,

.z-datebox-focus .z-datebox-inp {

}


[hide preview]