Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-894

User specified style classes do not behave as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.5-SNAPSHOT
    • None
    • Tabbed Pane
    • None

    Description

      The TLD docs for the "t:panelTabbedPane" have these definitions for two of the style class overrides:

      activeTabStyleClass Style class of the active tab cell
      inactiveTabStyleClass Style class of the inactive tab cells

      This implies to the reader that I can say something like:

      <t:panelTabbedPane ... activeTabStyleClass="menu-sel" inactiveTabStyleClass="menu" .../>

      and expect my custom style classes to take effect. However, that is not what actually happens, because the component still emits the default Tomahawk style class first (myFaces_panelTabbedPane_activeHeaderCell or myFaces_panelTabbedPane_inactiveHeaderCell). That means my styles get ignored unless I create a cascade in my stylesheet definitions, or I use the "!important" modifier on EVERY SINGLE ENTRY. That is very poor usability – it would be much better to replace the default style class when the user specifies one, so they don't have to go through all the pain of figuring out why their styles seem to be ignored.

      Attachments

        Activity

          People

            Unassigned Unassigned
            craigmcc Craig R. McClanahan
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: