Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(atlas-core): adding 3 state checkbox #121

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]

## Added

- We added three state checkbox styling to atlas-core.

## [3.13.1] Atlas Core - 2024-1-17

### Fixed
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.13.1",
"version": "3.13.2",
"license": "Apache-2.0",
"copyright": "© Mendix Technology BV 2024. All rights reserved.",
"repository": {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
//
// DISCLAIMER:
// Do not change this file because it is core styling.
// Customizing core files will make updating Atlas much more difficult in the future.
// To customize any core styling, copy the part you want to customize to styles/web/sass/app/ so the core styling is overwritten.
//

@mixin three-state-checkbox() {
/* ==========================================================================
Three state check box

Default Mendix three state check box widget
========================================================================== */

input[type="checkbox"].three-state-checkbox {
&:indeterminate:after {
// Checkmark
width: 8px;
height: 4px;
margin: 5px 4px;
transform: rotate(0deg);
pointer-events: none;
border: 0 solid #ffffff;
border-bottom-width: 2px;
transition: border 0s;
}
&:indeterminate:before {
border-color: $form-input-border-focus-color;
background-color: $form-input-border-focus-color;
}
&:indeterminate:after {
content: "";
}
}
}
2 changes: 2 additions & 0 deletions packages/atlas/src/themesource/atlas_core/web/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@
}

@import "core/widgets/check-box";
@import "core/helpers/three-state-checkbox";
@if not $exclude-check-box {
@include check-box();
@include three-state-checkbox();
}

@import "core/widgets/grid";
Expand Down
Loading