Generated with the help of an LLM.

Problem/Motivation

The visibility control finds the hiding option of each breakpoint style by its -none ending.
It reads the other display types after the same prefix, as in Bootstrap's d-md-none and d-md-flex.

PatternFly puts the screen size last: pf-v6-u-display-none-on-md, pf-v6-u-display-flex-on-md.
A PatternFly mapping listing its six display styles in visibility.breakpoints validates, but the control shows only the XS toggle.

Proposed resolution

Read the hiding option as a prefix, none and an optional suffix, and write the classes with both.
Styles with the size before the type keep working as now.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Status: Needs work » Needs review

  • mogtofu33 committed 133b0c0e on 1.3.x
    feat: #3642218 Read visibility styles whose classes end with the screen...
mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.