@carbon/ibm-products-styles 2.69.0 → 2.70.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products-styles",
3
3
  "description": "Carbon for IBM Products styles",
4
- "version": "2.69.0",
4
+ "version": "2.70.0",
5
5
  "license": "Apache-2.0",
6
6
  "installConfig": {
7
7
  "hoistingLimits": "none"
@@ -50,7 +50,7 @@
50
50
  "cross-env": "^10.0.0",
51
51
  "glob": "^11.0.1",
52
52
  "jest": "^29.7.0",
53
- "jest-config-ibm-cloud-cognitive": "^1.32.0",
53
+ "jest-config-ibm-cloud-cognitive": "^1.33.0",
54
54
  "jest-environment-jsdom": "^29.7.0",
55
55
  "npm-run-all": "^4.1.5",
56
56
  "rimraf": "^6.0.1",
@@ -67,5 +67,5 @@
67
67
  "dependencies": {
68
68
  "@ibm/telemetry-js": "^1.9.1"
69
69
  },
70
- "gitHead": "d11657732618b5ad89db5b9350997837a7bcb996"
70
+ "gitHead": "308b923854caeff69eb77e23e687ca3709d5fe92"
71
71
  }
@@ -9,6 +9,8 @@
9
9
  @use '../../global/styles/project-settings' as c4p-settings;
10
10
  @use '../../global/styles/mixins';
11
11
  @use '@carbon/styles/scss/config';
12
+ @use '@carbon/styles/scss/spacing' as *;
13
+ @use '@carbon/styles/scss/theme' as *;
12
14
 
13
15
  @use './coachmark-dragbar';
14
16
  @use './coachmark-header';
@@ -43,4 +45,9 @@ $block-class-next: #{c4p-settings.$pkg-prefix}--coachmark__next;
43
45
  margin-inline-end: auto;
44
46
  }
45
47
  }
48
+ .#{$block-class-next}--content-header--is-dragging {
49
+ border-radius: 0;
50
+ box-shadow: 0 0 0 $spacing-02 $icon-inverse;
51
+ outline: $spacing-01 solid $background-inverse;
52
+ }
46
53
  }
@@ -88,3 +88,27 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
88
88
  > .#{$block-class}__groupConnector {
89
89
  margin-block-end: 0;
90
90
  }
91
+
92
+ .#{$block-class}__readonly {
93
+ .#{$block-class}__condition-inner-block,
94
+ .#{$block-class}__connector,
95
+ .#{$block-class}__action-block,
96
+ .#{$block-class}__add-condition-wrapper,
97
+ .#{$block-class}__groupConnector {
98
+ background: transparent;
99
+ box-shadow: inset 0 0 0 1px $border-subtle-00;
100
+
101
+ button {
102
+ background: transparent;
103
+ cursor: default;
104
+
105
+ svg {
106
+ color: $icon-disabled;
107
+ }
108
+ }
109
+ }
110
+ }
111
+
112
+ .#{$block-class}__condition-inner-block {
113
+ display: flex;
114
+ }
@@ -61,7 +61,23 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
61
61
  padding-inline: $spacing-05;
62
62
  }
63
63
 
64
- .#{$block-class}__item-option__option:hover {
64
+ .#{$block-class}__item-option__option[aria-disabled] {
65
+ color: $text-disabled;
66
+
67
+ &:hover {
68
+ cursor: not-allowed;
69
+ }
70
+
71
+ &:focus {
72
+ cursor: not-allowed;
73
+ outline: none;
74
+ }
75
+ }
76
+ .#{$block-class}__item-option__option[aria-hidden] {
77
+ display: none;
78
+ }
79
+
80
+ .#{$block-class}__item-option__option:not([aria-disabled]):hover {
65
81
  background-color: $layer-hover;
66
82
  }
67
83
 
@@ -91,17 +107,15 @@ $block-class: #{c4p-settings.$pkg-prefix}--condition-builder;
91
107
  border-block-start: 0.0625rem solid $border-subtle;
92
108
  }
93
109
 
94
- .#{$block-class}__item-option__option:hover
95
- .#{$block-class}__item-option__option-content,
96
- .#{$block-class}__item-option__option[aria-selected='true']
97
- .#{$block-class}__item-option__option-content,
98
- .#{$block-class}__item-option__option:hover
99
- + .#{$block-class}__item-option__option
100
- .#{$block-class}__item-option__option-content,
101
- .#{$block-class}__item-option__option[aria-selected='true']
102
- + .#{$block-class}__item-option__option
103
- .#{$block-class}__item-option__option-content {
104
- border-block-start-color: transparent;
110
+ .#{$block-class}__item-option__option:not([aria-disabled]) {
111
+ &:hover,
112
+ &[aria-selected='true'],
113
+ &:hover + .#{$block-class}__item-option__option,
114
+ &[aria-selected='true'] + .#{$block-class}__item-option__option {
115
+ .#{$block-class}__item-option__option-content {
116
+ border-block-start-color: transparent;
117
+ }
118
+ }
105
119
  }
106
120
 
107
121
  .#{$block-class}__item-option__option[aria-selected='true'] {
@@ -188,11 +188,16 @@ $clabs-prefix: 'clabs';
188
188
  --#{$block-class}--actions-height: #{$spacing-09};
189
189
  }
190
190
 
191
- &.#{$block-class}--slide-in,
192
191
  &:not(.#{$block-class}--has-overlay) {
193
192
  box-shadow: 0 $spacing-01 $spacing-02 $overlay;
194
193
  }
195
194
 
195
+ // Slide-in panels should use border not shadows since they don’t layer
196
+ &.#{$block-class}--slide-in,
197
+ &.#{$block-class}--slide-in:not(.#{$block-class}--has-overlay) {
198
+ box-shadow: none;
199
+ }
200
+
196
201
  .#{$block-class}__actions-container {
197
202
  inline-size: 100%;
198
203
  }
@@ -209,6 +209,7 @@ $motion-duration: $duration-moderate-02;
209
209
  }
210
210
 
211
211
  &.#{$block-class}--wide .#{$block-class}__header {
212
+ overflow: visible;
212
213
  padding: $spacing-06 $spacing-07;
213
214
  margin: 0;
214
215
  background-color: $layer;
@@ -16,6 +16,7 @@ $block-class: #{c4p-settings.$pkg-prefix}--truncated-text;
16
16
  display: -webkit-box;
17
17
  overflow: hidden;
18
18
  -webkit-box-orient: vertical;
19
+ line-height: initial;
19
20
  text-overflow: clip;
20
21
  }
21
22