Skip to content

bug: Responsive Display Attributes #18600

@oori

Description

@oori

Bug Report

Ionic version:
[x] 4.x

Current behavior:
Responsive Display Attributes isn’t working as documented:
.ion-hide-sm-{dir} | Applies the modifier to the element when min-width: 576px (up) or max-width: 576px (down).

Currently, .ion-hide-sm-down hides element on md or less (max-width 767px)

Expected behavior:
is expected to hide the element on a xs breakpoint or smaller (max-width: 576px).

Related code:
https://github.com/ionic-team/ionic/blob/78e477b2a7360537f5aeeca48f14cbf6c55f0a11/core/src/css/display.scss#L24

produces this faulty css:

@media (max-width: 767px) {
  .ion-hide-sm-down {
    display: none !important;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions