@carbon/ibmdotcom-styles 2.16.0-rc.0 → 2.16.0-rc.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.
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.16.0-rc.0",
4
+ "version": "2.16.0-rc.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "dist/ibm-dotcom-styles.min.css",
7
7
  "module": "src/scss",
@@ -48,5 +48,5 @@
48
48
  "sass": "~1.79.0",
49
49
  "sass-loader": "^13.0.0"
50
50
  },
51
- "gitHead": "850b531f80c907c8818579e78dbf318ba2769b64"
51
+ "gitHead": "5dc558ef59da8d102e6c4df024604832e9706a46"
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.
@@ -96,6 +96,8 @@
96
96
  :host(#{$c4d-prefix}-callout-with-media-video)
97
97
  ::slotted(#{$c4d-prefix}-video-player) {
98
98
  @extend :host(#{$c4d-prefix}-callout-caption);
99
+
100
+ margin-block-end: 0;
99
101
  }
100
102
 
101
103
  :host(#{$c4d-prefix}-callout-with-media-image[color-scheme='inverse'])
@@ -159,7 +161,7 @@
159
161
  .#{$prefix}--callout-with-media
160
162
  .#{$prefix}--callout__content
161
163
  .#{$prefix}--content-block {
162
- padding-block-end: $spacing-10;
164
+ padding-block-end: $spacing-07;
163
165
  }
164
166
 
165
167
  :host(#{$c4d-prefix}-callout-with-media-image),
@@ -281,12 +281,6 @@
281
281
  flex-direction: column;
282
282
  gap: $spacing-05;
283
283
  }
284
-
285
- ::slotted(div) {
286
- /* stylelint-disable declaration-no-important */
287
- // need the !important to prevent CSS reset styles from overwritting margin for tags
288
- margin-inline-start: -$spacing-02 !important;
289
- }
290
284
  }
291
285
 
292
286
  :host(#{$c4d-prefix}-card[aspect-ratio='1:1']) .#{$prefix}--card__wrapper {
@@ -77,11 +77,18 @@
77
77
  &::after {
78
78
  content: revert;
79
79
  }
80
+
81
+ &::after {
82
+ display: block;
83
+ aspect-ratio: 16 / 9;
84
+ content: '';
85
+ grid-area: 1 / 1 / -1 / -1;
86
+ }
80
87
  }
81
88
 
82
89
  .#{$prefix}--card__content {
83
90
  display: grid;
84
- grid-row: span 10;
91
+ grid-area: 1 / 1 / -1 / -1;
85
92
  grid-template-rows: subgrid;
86
93
  row-gap: 0;
87
94
  }
@@ -86,6 +86,10 @@ $feature-flags: (
86
86
  flex: 1 0 50%;
87
87
  }
88
88
 
89
+ .#{$prefix}--card__image-wrapper {
90
+ aspect-ratio: 1 / 1;
91
+ }
92
+
89
93
  .#{$prefix}--card__wrapper {
90
94
  &::before,
91
95
  &::after {
@@ -125,6 +129,7 @@ $feature-flags: (
125
129
  ::slotted([slot='image']),
126
130
  #{$c4d-prefix}-image {
127
131
  z-index: 0;
132
+ block-size: 100%;
128
133
 
129
134
  // Opacity is adjusted on hover. See above.
130
135
  &::before {
@@ -246,10 +251,27 @@ $feature-flags: (
246
251
  }
247
252
  }
248
253
 
249
- :host(#{$c4d-prefix}-feature-card-footer)[color-scheme='inverse']
250
- .#{$c4d-prefix}-ce--card__footer
251
- ::slotted(svg[slot='icon']) {
252
- fill: $link-inverse;
254
+ :host(#{$c4d-prefix}-feature-card-footer)[color-scheme='inverse'] {
255
+ .#{$c4d-prefix}-ce--card__footer {
256
+ .#{$c4d-prefix}-ce--cta__icon,
257
+ ::slotted(svg[slot='icon']) {
258
+ fill: $link-inverse;
259
+ }
260
+
261
+ &:hover {
262
+ .#{$c4d-prefix}-ce--cta__icon,
263
+ ::slotted(svg[slot='icon']) {
264
+ fill: $link-inverse-hover;
265
+ }
266
+ }
267
+
268
+ &:active {
269
+ .#{$c4d-prefix}-ce--cta__icon,
270
+ ::slotted(svg[slot='icon']) {
271
+ fill: $link-inverse-active;
272
+ }
273
+ }
274
+ }
253
275
  }
254
276
 
255
277
  :host(#{$c4d-prefix}-feature-card[size='large']) {
@@ -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.
@@ -121,6 +121,7 @@
121
121
 
122
122
  ::slotted(#{$c4d-prefix}-image) {
123
123
  overflow: hidden;
124
+ block-size: 100%;
124
125
 
125
126
  @include breakpoint(sm) {
126
127
  block-size: aspect-ratio(1, 1);
@@ -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.
@@ -112,7 +112,7 @@
112
112
 
113
113
  :host(#{$c4d-prefix}-footer-nav-item),
114
114
  :host(#{$c4d-prefix}-legal-nav-item),
115
- :host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder) div {
115
+ :host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder) {
116
116
  @include theme($g100, feature-flag-enabled('enable-css-custom-properties'));
117
117
 
118
118
  display: list-item;
@@ -142,6 +142,12 @@
142
142
  }
143
143
  }
144
144
 
145
+ :host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder) {
146
+ .#{$prefix}--footer__link.#{$prefix}--link {
147
+ cursor: pointer;
148
+ }
149
+ }
150
+
145
151
  :host(#{$c4d-prefix}-legal-nav) {
146
152
  @include theme($g100, feature-flag-enabled('enable-css-custom-properties'));
147
153
 
@@ -220,7 +226,7 @@
220
226
  @include make-container;
221
227
  }
222
228
  }
223
- .#{$prefix}--adjunct-links__container--hidden {
229
+ .#{$c4d-prefix}--adjunct-links__container--hidden {
224
230
  display: none;
225
231
  }
226
232
  }
@@ -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.
@@ -198,7 +198,7 @@
198
198
  }
199
199
 
200
200
  :host(#{$c4d-prefix}-legal-nav-item),
201
- :host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder) div,
201
+ :host(#{$c4d-prefix}-legal-nav-cookie-preferences-placeholder),
202
202
  .#{$prefix}--legal-nav__list-item {
203
203
  padding: $spacing-03 0 0 0;
204
204
  margin-inline-end: $spacing-07;
@@ -464,6 +464,7 @@ $btn-min-width: 26;
464
464
 
465
465
  :host(#{$c4d-prefix}-leadspace) ::slotted([slot='navigation']) {
466
466
  z-index: 1;
467
+ max-inline-size: 40rem;
467
468
  // need the !important to prevent CSS reset styles from overwritting margin for tags
468
469
  /* stylelint-disable declaration-no-important */
469
470
  padding-block-end: $spacing-05 !important;
@@ -9,6 +9,9 @@
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
10
  @use '@carbon/styles/scss/theme' as *;
11
11
  @use '@carbon/styles/scss/utilities/convert';
12
+ @use '@carbon/type';
13
+
14
+ @include type.reset();
12
15
 
13
16
  @mixin notice-choice {
14
17
  .#{$prefix}--nc {
@@ -17,6 +20,7 @@
17
20
  p,
18
21
  .#{$prefix}--checkbox-group {
19
22
  margin-block-end: $spacing-06;
23
+ @include type.type-style('legal-02');
20
24
  }
21
25
 
22
26
  a {
@@ -112,7 +112,6 @@ $hover-transition-timing: 95ms;
112
112
  @extend .#{$prefix}--col-lg-12;
113
113
 
114
114
  box-sizing: border-box;
115
- padding-block: $spacing-05 $spacing-09;
116
115
  }
117
116
 
118
117
  .#{$prefix}--tableofcontents {
@@ -86,6 +86,7 @@
86
86
  }
87
87
 
88
88
  ::slotted(#{$c4d-prefix}-content-group:not([slot])),
89
+ ::slotted(#{$c4d-prefix}-cta-block-item-row:not([slot])),
89
90
  ::slotted([data-autoid^='c4d--tabs-']:not([slot])),
90
91
  ::slotted([data-autoid^='c4d--card']:not([slot])) {
91
92
  margin-inline-start: 0;