@trilogy-ds/styles 4.3.0 → 4.3.1-beta-2

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.
@@ -16,6 +16,11 @@ $status-select: (
16
16
  padding-left: 15px !important;
17
17
  }
18
18
 
19
+ // to prevent user agent style
20
+ &:disabled {
21
+ opacity: 1 !important;
22
+ }
23
+
19
24
  @each $name in $status-select {
20
25
  $color: getColor($name);
21
26
  $color-invert: invertColor($name);
@@ -445,7 +445,7 @@ $label-weight: $weight-bold;
445
445
  }
446
446
  }
447
447
 
448
- &:has(input[disabled]) {
448
+ &:has(input[disabled]), &:has(select[disabled]) {
449
449
  @include disabledRulesWithoutBG;
450
450
  }
451
451
  }
@@ -5,6 +5,6 @@
5
5
  --radius-medium: 8px;
6
6
  --radius-small: 4px;
7
7
  --radius-large: 16px;
8
- --border: 1px solid #{getColor('neutral')};
8
+ --border: 1px solid #{getColor('stroke')};
9
9
  --border-active: 2px solid #{getColor('main')};
10
10
  }
@@ -26,7 +26,7 @@
26
26
  @include control;
27
27
  height: 56px;
28
28
  background-color: getColor('background');
29
- border-color: getColor('neutral');
29
+ border: var(--border);
30
30
  color: getColor('font');
31
31
 
32
32
  @include placeholder {
@@ -91,11 +91,16 @@
91
91
 
92
92
  &:disabled,
93
93
  &:disabled:checked {
94
- & ~ label.#{$type}-label {
94
+ & ~ label.checkbox-label {
95
95
  &:after {
96
96
  background-color: getColor('disabled-fade');
97
97
  }
98
98
  }
99
+ & ~ label.radio-label {
100
+ &:after {
101
+ background-color: getColor('disabled');
102
+ }
103
+ }
99
104
  }
100
105
 
101
106
  &:disabled {
@@ -11,6 +11,7 @@ $suffix: '';
11
11
  */
12
12
  $colors: (
13
13
  'background': [#fff, 'white', 'main'],
14
+ 'stroke':[ #727272, 'stroke', 'white' ],
14
15
  'transparent': ['transparent', 'transparent', 'transparent'],
15
16
  'main':[ #3d5d7e, 'main', 'white'],
16
17
  'main-fade':[ #eff2f8, 'main-fade', 'white'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trilogy-ds/styles",
3
- "version": "4.3.0",
3
+ "version": "4.3.1-beta-2",
4
4
  "author": "Bouygues Telecom",
5
5
  "license": "UNLICENSED",
6
6
  "files": [