Skip to content

Title block: a filter's label can wrap away from its select #552

Open

Description

@caseysoftware

w2p_Theme_TitleBlock::addFilterCell() and addSearchCell() add the label and the control as two separate cells (two <li class="right"> in crumb-right). When the cells don't fit on one row, the row wraps between any two cells, so a label can end up on one line and its select on another, next to the wrong control.

Reproduce (master 8727ad5c, 5.0.0-rc3, Cedar Lane demo data, 1280 px wide window)
Open a list with a long project name in its filter plus a few other filters and a button. For example, the Notebook add-on's index (Search, Company, Project, Status filters and a "New Note" button) shows "Status:" after the button on the second line, while its select stays on the first line. Core lists such as Files fit on one row at this width, but a long project name or a narrow window hits the same thing.

Suggested fix
Wrap each label and control in one cell, e.g. <li class="right"><label>Status: <select …></label></li> (also better for screen readers), or render each pair as one Bootstrap input group. addSearchCell() likewise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions