Skip to content

Helper classes like show-on-small don't work as expected. #200

Open
@AnupamKhosla

Description

@AnupamKhosla

It is expected, from what the name suggests, that show-on-small will only show content on small/mobile(<=600px) screens. But in reality you have to manually display: none the content for other screen sizes. E.g. consider this demo: https://jsfiddle.net/x8jd0mt4/ Even for screens >600px the text doesn't get hiidden. Same is true for other similar classes like .show-on-medium-and-down and .center-on-small-only

Heres what the docs say:

.show-on-small ------------------- Show for Mobile Only

The framework can be improved by doind the following instead:


.show-on-small {
  display: none !important;
}

@media only screen and (max-width: 600px) {
  .show-on-small {
    display: block !important;
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcss/sassFor something that related to styling/view

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions