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

Cannot skin SeparatorMenuItem with CSS

    Details

      Description

      I may be missing something, but it seems that I can no longer skin the appearance of the separators (SeparatorMenuItem) of menus (in my case, a SplitMenuButton). I'm guessing this has to do with the split of SeparatorMenuItem from Separator. I'd like to make the separator appear as a solid line rather than dashed. I've tried a number of things in my CSS file, including:

      .separator {
        -fx-border-style: solid;
      }

      .separator:horizontal {
        -fx-border-style: solid;
      }

      .separator-menu-item {
        -fx-border-style: solid;
      }

      .separator-menu-item:horizontal {
        -fx-border-style: solid;
      }

      .separator .line {
        -fx-border-style: solid;
      }

      .separator:horizontal .line {
        -fx-border-style: solid;
      }

      .separator-menu-item .line {
        -fx-border-style: solid;
      }

      .separator-menu-item:horizontal .line {
        -fx-border-style: solid;
      }

        Attachments

          Activity

            People

            • Assignee:
              psomashe Parvathi Somashekar (Inactive)
              Reporter:
              kmcintyrejfx Kyle McIntyre (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: