Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-5497

a tree doesn't show its focused state obviously

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • 10.2.0
    • 9.6.4
    • None
    • Security Level: Jimmy
    • None

      Steps to Reproduce

          <tree id="tree" rows="5">
              <treecols sizable="true">
                  <treecol label="Name"/>
                  <treecol label="Description"/>
              </treecols>
              <treechildren>
                  <treeitem>
                      <treerow>
                          <treecell label="Item 1"/>
                          <treecell label="Item 1 description"/>
                      </treerow>
                  </treeitem>
                  <treeitem>
                      <treerow>
                          <treecell label="Item 2"/>
                          <treecell label="Item 2 description"/>
                      </treerow>
                      <treechildren>
                          <treeitem>
                              <treerow>
                                  <treecell label="Item 2.1"/>
                              </treerow>
                          </treeitem>
                          <treeitem>
                              <treerow>
                                  <treecell label="Item 2.2"/>
                                  <treecell
                                          label="Item 2.2 is something who cares"/>
                              </treerow>
                          </treeitem>
                      </treechildren>
                  </treeitem>
                  <treeitem label="Item 3"/>
              </treechildren>
          </tree>
      

      1. move a focus to the tree by pressing a tab key

      Current result

      no obvious visual effect for the focused tree

      Expected result

      end-users can clearly identify the tree is focused on right now

      Workaround

              .z-tree:focus-within {
                  position: relative;
              }
              .z-tree:focus-within::before {
                  z-index: 1;
                  content: "";
                  display: block;
                  width: 100%;
                  height: 100%;
                  position: absolute;
                  box-shadow: inset 0 0 0 2px #E67626, inset 0 0 0 0px #FFFFFF;
                  pointer-events: none;
              }
      

            Unassigned Unassigned
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: