Skip to content

Commit 7a5a8d5

Browse files
committed
chore(atlas-core): adding 3 state checkbox
1 parent 313c673 commit 7a5a8d5

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

packages/atlas-core/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## [Unreleased]
88

9+
## Added
10+
11+
- We added three state checkbox styling to atlas-core.
12+
913
## [3.13.1] Atlas Core - 2024-1-17
1014

1115
### Fixed

packages/atlas-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "atlas-core",
33
"moduleName": "Atlas Core",
4-
"version": "3.13.1",
4+
"version": "3.13.2",
55
"license": "Apache-2.0",
66
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
77
"repository": {
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
//
2+
// DISCLAIMER:
3+
// Do not change this file because it is core styling.
4+
// Customizing core files will make updating Atlas much more difficult in the future.
5+
// To customize any core styling, copy the part you want to customize to styles/web/sass/app/ so the core styling is overwritten.
6+
//
7+
8+
@mixin three-state-checkbox() {
9+
/* ==========================================================================
10+
Three state check box
11+
12+
Default Mendix three state check box widget
13+
========================================================================== */
14+
15+
input[type="checkbox"].three-state-checkbox {
16+
&:indeterminate:after {
17+
// Checkmark
18+
width: 8px;
19+
height: 4px;
20+
margin: 5px 4px;
21+
transform: rotate(0deg);
22+
pointer-events: none;
23+
border: 0 solid #ffffff;
24+
border-bottom-width: 2px;
25+
transition: border 0s;
26+
}
27+
&:indeterminate:before {
28+
border-color: $form-input-border-focus-color;
29+
background-color: $form-input-border-focus-color;
30+
}
31+
&:indeterminate:after {
32+
content: "";
33+
}
34+
}
35+
}

packages/atlas/src/themesource/atlas_core/web/main.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,10 @@
101101
}
102102

103103
@import "core/widgets/check-box";
104+
@import "core/helpers/three-state-checkbox";
104105
@if not $exclude-check-box {
105106
@include check-box();
107+
@include three-state-checkbox();
106108
}
107109

108110
@import "core/widgets/grid";

0 commit comments

Comments
 (0)