@mtvh/mtvh-design-system 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,7 +12,8 @@
12
12
 
13
13
  &.has-message.has-error {
14
14
  .text-danger {
15
- color: var(--mtvh-red-04) !important;
15
+ color: $form-feedback-invalid-color !important;
16
+ font-weight: bold;
16
17
  }
17
18
  }
18
19
 
@@ -20,17 +21,6 @@
20
21
  div.formio-component-form{
21
22
  & .formio-component:last-child {
22
23
  margin-bottom:0!important;
23
- border: 1px red solid;
24
- }
25
-
26
- div[ref="element"] {
27
- .form-text.text-right, .form-text.pull-right {
28
- float: none;
29
- margin-top: 12px;
30
- margin-bottom: 0;
31
- text-align: left !important;
32
- }
33
24
  }
34
25
  }
35
-
36
26
  }
@@ -1,4 +1,12 @@
1
- .col-form-label {
1
+ .col-form-label, .form-label {
2
2
  font-size: $form-label-font-size;
3
3
  font-weight: $form-label-font-weight;
4
+ padding: 0;
5
+ margin-bottom: $mtvh-spacing-3;
6
+
7
+ .optional-question {
8
+ font-weight: $mtvh-font-weight-normal;
9
+ font-size: $font-size-sm;
10
+
11
+ }
4
12
  }
@@ -8,32 +8,18 @@
8
8
  .invalid-feedback {
9
9
  font-weight: $mtvh-font-weight-bold;
10
10
  }
11
- .form-control {
11
+
12
+ .form-check-input {
12
13
  &.is-invalid {
13
- background-color: var(--mtvh-red-01);
14
- &[type="radio"] {
15
- border: 1px solid blue;
14
+ &:checked {
15
+ background-color: $form-check-input-checked-bg-color;
16
16
  }
17
17
  }
18
18
  }
19
+
19
20
  .form-text {
20
- font-size: $font-size-sm;
21
- margin-bottom: $mtvh-spacing-4;
22
21
  &.error {
23
22
  @include form-invalid-text();
24
23
  }
25
24
  }
26
25
 
27
- /* override radio validation style */
28
- .form-group {
29
- &.has-error {
30
- &:has([type="radio"]) {
31
-
32
- .form-check.radio {
33
- input {
34
- border: $form-check-input-border;
35
- }
36
- }
37
- }
38
- }
39
- }
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  @mixin form-invalid-text() {
4
- color: var(--mtvh-red-04);
4
+ color: $form-feedback-invalid-color;
5
5
  font-size: $font-size-sm;
6
6
  font-weight: bold;
7
7
  padding-left: $mtvh-spacing-6;
@@ -35,3 +35,15 @@
35
35
  }
36
36
 
37
37
  }
38
+
39
+
40
+ @mixin field-focus() {
41
+
42
+ &:focus {
43
+ box-shadow: none;
44
+ outline: solid var(--#{$prefix}btn-outline-border) var(--#{$prefix}primary-outline-color);
45
+ outline-offset: 0;
46
+ outline-offset: var(--#{$prefix}btn-outline-border);
47
+ color: $input-color;
48
+ }
49
+ }
@@ -50,18 +50,18 @@
50
50
  } @else { //position is left
51
51
 
52
52
  &:before{ ;
53
- @include animate-default;
54
- @include icon-transform('left');
55
- @if $svg-path {
56
- background-image: url($svg-path);
57
- } @else {
58
- -webkit-mask: get-icon($icon);
59
- mask: get-icon($icon);
60
- background-color: currentColor
61
- }
62
-
53
+ @include animate-default;
54
+ @include icon-transform('left');
55
+ @if $svg-path {
56
+ background-image: url($svg-path);
57
+ } @else {
58
+ -webkit-mask: get-icon($icon);
59
+ mask: get-icon($icon);
60
+ background-color: currentColor
63
61
  }
64
62
 
63
+ }
64
+
65
65
  @if $svg-path == '' {
66
66
  &:hover:not(.disabled) {
67
67
  &:before {
@@ -4,13 +4,14 @@
4
4
  @import "bootstrap/scss/functions";
5
5
 
6
6
  // 2. Include any default variable overrides here
7
+ @import 'config/palette';
7
8
  @import "config/variables";
8
9
  @import "config/font";
9
- @import 'config/palette';
10
10
  @import 'config/theme';
11
- @import "config/map-list";
11
+ @import "config/icon-list";
12
12
  @import 'base/all';
13
13
 
14
+ @import "mixins/icon";
14
15
  @import "mixins/form";
15
16
  @import "mixins/butttons";
16
17
  @import "mixins/banner";