You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Primer has visibility classes hide-md and hide-lg that goes respectively from the screen sizes 544px to 768px; 768px to 1012px. This seems perfectly reasonable.
The issue that, is not actually part of Primer itself, would happen to suppose the following scenario:
You use both hide-md in one div that should not display on medium screens but it should appear on large screens and another div using hide-lg that should not appear for large screens but should for medium ones.
None of them will appear since the screen has exactly 768px of width.
To Reproduce
Steps to reproduce the behavior:
Implement a snippet for example
<divclass="hide-md hide-sm hide-xl">show on large ONLY</div><divclass="hide-lg hide-sm hide-xl">show on medium ONLY</div>
If your screen size is exactly 768px. This will happen. You may be able to test/reproduce by using Developer Tools and set manually your screen size to 768px. If you have an Apple iPad Mini and rotate the screen to portrait this will also happen. Since iPad Mini portrait resolution is exactly 768px.
Expected behavior
The clash of screen sizes should not happen. This is easily solvable by either moving md one pixel less or one-pixel plus.
This may have unattended side effects... Since it could be someone is relying on this condition of 768px.
Screenshots
There should be a sidebar on the blue empty background.
Desktop (please complete the following information):
OS: macOS 10.15.4
Browser: Safari
Version: 13.2
Additional context
As explained before, this wouldn't probably be considered as a bug part of Primer. Since this is indeed a very edge scenario and may never happen. But maybe it is worth giving a look.
The text was updated successfully, but these errors were encountered:
Describe the bug
Primer has visibility classes
hide-md
andhide-lg
that goes respectively from the screen sizes 544px to 768px; 768px to 1012px. This seems perfectly reasonable.The issue that, is not actually part of Primer itself, would happen to suppose the following scenario:
hide-md
in onediv
that should not display on medium screens but it should appear on large screens and anotherdiv
usinghide-lg
that should not appear for large screens but should for medium ones.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The clash of screen sizes should not happen. This is easily solvable by either moving
md
one pixel less or one-pixel plus.This may have unattended side effects... Since it could be someone is relying on this condition of 768px.
Screenshots
There should be a sidebar on the blue empty background.
It should be behaving like this.
You may either check on https://santoro.dev
Desktop (please complete the following information):
Additional context
As explained before, this wouldn't probably be considered as a bug part of Primer. Since this is indeed a very edge scenario and may never happen. But maybe it is worth giving a look.
The text was updated successfully, but these errors were encountered: