Skip to content

Commit

Permalink
fix(atlas-core): hide on tablet and phone also based on profile, not …
Browse files Browse the repository at this point in the history
…only screen size
  • Loading branch information
r0b1n authored and gjulivan committed Sep 26, 2023
1 parent b6f1d00 commit a576c3b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/atlas-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## [Unreleased]

### Fixed

- We fixed an issue with "Hide on tablet" and "Hide on phone" design properties not working correctly on some devices.

## [3.12.0] Atlas Core - 2023-9-22

## Added
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas-core/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "atlas-core",
"moduleName": "Atlas Core",
"version": "3.12.0",
"version": "3.12.1",
"license": "Apache-2.0",
"copyright": "© Mendix Technology BV 2022. All rights reserved.",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,18 @@
display: none #{$important-helpers-value};
}
}
.profile-phone .hide-phone {
display: none #{$important-helpers-value};
}

@media (min-width: $screen-md) and (max-width: $screen-md-max) {
.hide-tablet {
display: none #{$important-helpers-value};
}
}
.profile-tablet .hide-tablet {
display: none #{$important-helpers-value};
}

@media (min-width: $screen-lg) {
.hide-desktop {
Expand Down

0 comments on commit a576c3b

Please sign in to comment.