Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8116769

Some CSS properties do not take effect in controls (2.1 b13)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      win xp
      32
      JavaFX 2.1b13

      Description

      https://forums.oracle.com/forums/thread.jspa?threadID=2349035&tstart=15

      Setting the CSS for the .titled-pane class affects not only the Label, but also the contents of the panes:

      .titled-pane {
      -fx-text-fill: white;
      }


      In my case the TitledPanes contain ListViews with Labeled items). In result each of labels becomes white in color....
      I would like to style only the Label of the TitledPane...that's why I'm using the following CSS;

      .titled-pane:expanded > .title {
          -fx-base: #555555;
          -fx-text-fill: white;
      }



      and this is not working(the Label of the pane is not colored in white, when the pane is expanded and not focused)
      ...seems like a bug to me...


      -------------------------------------------
      .tooltip {
          -fx-text-fill: white;
      }



      does not seem to work in 2.1 either ...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kwwong Kinsley Wong
              Reporter:
              kiriljfx Kiril (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: