@carbon/ibmdotcom-styles 2.13.1-rc.0 → 2.14.0-rc.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/ibmdotcom-styles",
3
3
  "description": "Carbon for IBM.com Styles",
4
- "version": "2.13.1-rc.0",
4
+ "version": "2.14.0-rc.0",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -33,11 +33,11 @@
33
33
  "@carbon/icons-react": "11.49.0",
34
34
  "@carbon/layout": "11.26.0",
35
35
  "@carbon/styles": "1.65.0",
36
- "@carbon/type": "11.31.0",
36
+ "@carbon/type": "11.32.1",
37
37
  "@ibm/telemetry-js": "^1.5.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@carbon/themes": "11.40.0",
40
+ "@carbon/themes": "11.41.1",
41
41
  "del": "^6.0.0",
42
42
  "gulp": "^4.0.2",
43
43
  "gulp-autoprefixer": "^6.1.0",
@@ -45,8 +45,8 @@
45
45
  "gulp-rename": "^2.0.0",
46
46
  "gulp-sass": "^5.0.0",
47
47
  "require-dir": "^1.2.0",
48
- "sass": "~1.78.0",
48
+ "sass": "~1.79.0",
49
49
  "sass-loader": "^13.0.0"
50
50
  },
51
- "gitHead": "1c84070c126b7d9bf63a409305df2a3b72aaf332"
51
+ "gitHead": "7f4de6899e2cc0226529afb33763cad7b167d532"
52
52
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -141,9 +141,13 @@
141
141
 
142
142
  .#{$prefix}--card__heading,
143
143
  .#{$prefix}--card__copy {
144
- @include content-width;
145
-
146
144
  color: $text-primary;
145
+ max-inline-size: to-rem(640px);
146
+ padding-inline-end: 10%;
147
+
148
+ @include breakpoint(md) {
149
+ padding-inline-end: $spacing-07;
150
+ }
147
151
  }
148
152
 
149
153
  .#{$prefix}--card__copy:not([hidden]) {
@@ -185,6 +189,10 @@
185
189
  }
186
190
  }
187
191
 
192
+ .#{$prefix}--card__pictogram-wrapper {
193
+ display: flex;
194
+ }
195
+
188
196
  &[pictogram] .#{$prefix}--card {
189
197
  ::slotted(#{$c4d-prefix}-card-heading) {
190
198
  padding-block-start: 0;
@@ -417,6 +425,7 @@
417
425
 
418
426
  :host(#{$c4d-prefix}-card-eyebrow),
419
427
  .#{$prefix}--card__eyebrow {
428
+ display: block;
420
429
  @include content-width;
421
430
  @include type-style('label-02');
422
431
 
@@ -597,6 +606,7 @@
597
606
 
598
607
  :host(#{$c4d-prefix}-card-heading),
599
608
  :host(#{$c4d-prefix}-card-link-heading) {
609
+ display: block;
600
610
  @include content-width;
601
611
 
602
612
  color: $text-primary;
@@ -56,10 +56,42 @@
56
56
  }
57
57
 
58
58
  :host(#{$c4d-prefix}-card-group-item) {
59
+ display: contents;
60
+
59
61
  .#{$prefix}--card {
62
+ display: grid;
60
63
  border: 0;
64
+ grid-row: span 10;
65
+ grid-template-rows: subgrid;
66
+ margin-block-end: $spacing-07;
61
67
  outline: 1px solid $border-tile-01;
62
68
  outline-offset: 0;
69
+
70
+ .#{$prefix}--card__wrapper {
71
+ display: grid;
72
+ justify-content: revert;
73
+ grid-row: span 10;
74
+ grid-template-rows: subgrid;
75
+
76
+ &::before,
77
+ &::after {
78
+ content: revert;
79
+ }
80
+ }
81
+
82
+ .#{$prefix}--card__content {
83
+ display: grid;
84
+ grid-row: span 10;
85
+ grid-template-rows: subgrid;
86
+ row-gap: 0;
87
+ }
88
+
89
+ .#{$prefix}--card__copy {
90
+ display: grid;
91
+ grid-row: span 2;
92
+ grid-template-rows: subgrid;
93
+ row-gap: 0;
94
+ }
63
95
  }
64
96
 
65
97
  .#{$prefix}--image {
@@ -84,6 +116,30 @@
84
116
  outline-offset: -1px;
85
117
  }
86
118
  }
119
+
120
+ &[grid-mode='narrow'] {
121
+ .#{$prefix}--card {
122
+ margin-block-end: $spacing-05;
123
+ }
124
+ }
125
+
126
+ &[grid-mode='condensed'] {
127
+ .#{$prefix}--card {
128
+ margin-block-end: 0;
129
+ }
130
+ }
131
+
132
+ ::slotted(#{$c4d-prefix}-card-footer) {
133
+ display: revert;
134
+ margin-block-start: revert;
135
+ }
136
+
137
+ // Selects elements that contain tags which are slotted into the default
138
+ // slot. Note that this does not work in Chrome at time of writing.
139
+ // @see https://developer.chrome.com/blog/has-m105/#performance_and_limitations
140
+ ::slotted(:not([slot]):has(#{$prefix}-tag, #{$c4d-prefix}-tag)) {
141
+ grid-row: -1;
142
+ }
87
143
  }
88
144
 
89
145
  :host(#{$c4d-prefix}-card-group-item[href='']) {
@@ -110,24 +166,24 @@
110
166
 
111
167
  :host(#{$c4d-prefix}-card-group)[grid-mode='narrow'] {
112
168
  @include breakpoint(sm) {
113
- gap: $spacing-03;
169
+ gap: 0 $spacing-03;
114
170
  padding-block-start: $spacing-03;
115
171
  }
116
172
 
117
173
  @include breakpoint(md) {
118
- gap: $spacing-05;
174
+ gap: 0 $spacing-05;
119
175
  padding-block-start: $spacing-05;
120
176
  }
121
177
  }
122
178
 
123
179
  :host(#{$c4d-prefix}-card-group)[grid-mode='default'] {
124
180
  @include breakpoint(sm) {
125
- gap: $spacing-07;
181
+ gap: 0 $spacing-07;
126
182
  padding-block-start: $spacing-03;
127
183
  }
128
184
 
129
185
  @include breakpoint(md) {
130
- gap: $spacing-07;
186
+ gap: 0 $spacing-07;
131
187
  padding-block-start: $spacing-05;
132
188
  }
133
189
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -14,8 +14,8 @@
14
14
  @use '@carbon/styles/scss/layout' as *;
15
15
  @use '@carbon/styles/scss/components/button' as *;
16
16
  @use '@carbon/styles/scss/components/checkbox';
17
- @use '../../../../carbon-web-components/src/components/modal/modal';
18
- @use '../../../../carbon-web-components/scss/components/accordion/accordion';
17
+ @use '@carbon/web-components/scss/components/accordion/accordion';
18
+ @use '@carbon/web-components/scss/components/modal/modal';
19
19
  @use '../../globals/vars' as *;
20
20
 
21
21
  @mixin filter-panel {
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2020, 2023
2
+ // Copyright IBM Corp. 2020, 2024
3
3
  //
4
4
  // This source code is licensed under the Apache-2.0 license found in the
5
5
  // LICENSE file in the root directory of this source tree.
@@ -9,7 +9,7 @@
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
10
  @use '@carbon/styles/scss/theme' as *;
11
11
  @use '@carbon/styles/scss/type' as *;
12
- @use '../../../../carbon-web-components/src/components/modal/modal' as *;
12
+ @use '@carbon/web-components/scss/components/modal/modal' as *;
13
13
  @use '@carbon/ibmdotcom-styles/scss/globals/vars' as *;
14
14
 
15
15
  @mixin leaving-ibm {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright IBM Corp. 2016, 2023
2
+ * Copyright IBM Corp. 2016, 2024
3
3
  *
4
4
  * This source code is licensed under the Apache-2.0 license found in the
5
5
  * LICENSE file in the root directory of this source tree.