@carbon/styles 1.53.0-rc.0 → 1.53.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/styles",
3
3
  "description": "Styles for the Carbon Design System",
4
- "version": "1.53.0-rc.0",
4
+ "version": "1.53.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -40,13 +40,13 @@
40
40
  }
41
41
  },
42
42
  "dependencies": {
43
- "@carbon/colors": "^11.21.0-rc.0",
44
- "@carbon/feature-flags": "^0.18.0-rc.0",
45
- "@carbon/grid": "^11.22.0-rc.0",
46
- "@carbon/layout": "^11.21.0-rc.0",
47
- "@carbon/motion": "^11.17.0-rc.0",
48
- "@carbon/themes": "^11.33.0-rc.0",
49
- "@carbon/type": "^11.26.0-rc.0",
43
+ "@carbon/colors": "^11.21.0",
44
+ "@carbon/feature-flags": "^0.18.0",
45
+ "@carbon/grid": "^11.22.0",
46
+ "@carbon/layout": "^11.21.0",
47
+ "@carbon/motion": "^11.17.0",
48
+ "@carbon/themes": "^11.33.0",
49
+ "@carbon/type": "^11.26.0",
50
50
  "@ibm/plex": "6.0.0-next.6",
51
51
  "@ibm/telemetry-js": "^1.2.1"
52
52
  },
@@ -68,5 +68,5 @@
68
68
  "scss/**/*.css",
69
69
  "css/**/*.css"
70
70
  ],
71
- "gitHead": "fd9030978919c8d2ce0c102db94aeabf88563c34"
71
+ "gitHead": "7920f5261d5867837e0b7e6092c98a6597ac0771"
72
72
  }
@@ -163,6 +163,12 @@ describe('@carbon/styles/scss/theme', () => {
163
163
  "chat-avatar-user",
164
164
  "chat-shell-background",
165
165
  "chat-header-background",
166
+ "chat-button",
167
+ "chat-button-hover",
168
+ "chat-button-text-hover",
169
+ "chat-button-active",
170
+ "chat-button-selected",
171
+ "chat-button-text-selected",
166
172
  "highlight",
167
173
  "overlay",
168
174
  "toggle-off",
@@ -31,12 +31,21 @@
31
31
  // Quick action button
32
32
  .#{$prefix}--chat-btn--quick-action {
33
33
  align-items: center;
34
- border: 1px solid $link-primary;
34
+ border: 1px solid $chat-button;
35
+ background: transparent;
36
+ color: $chat-button;
35
37
  }
36
38
 
37
39
  .#{$prefix}--chat-btn--quick-action:hover:not(:active):not([disabled]) {
38
40
  border-color: transparent;
39
- background: $background-hover;
41
+ background: $chat-button-hover;
42
+ color: $chat-button-text-hover;
43
+ }
44
+
45
+ .#{$prefix}--chat-btn--quick-action:active {
46
+ border-color: transparent;
47
+ background: $chat-button-active;
48
+ color: $chat-button-text-hover;
40
49
  }
41
50
 
42
51
  .#{$prefix}--chat-btn--quick-action.#{$prefix}--btn--ghost:focus {
@@ -59,12 +68,17 @@
59
68
  .#{$prefix}--chat-btn--quick-action--selected[disabled],
60
69
  .#{$prefix}--chat-btn--quick-action--selected[disabled]:hover {
61
70
  border-color: transparent;
62
- background: $background-selected;
63
- color: $text-secondary;
71
+ background: $chat-button-selected;
72
+ color: $chat-button-text-selected;
64
73
  }
65
74
 
66
- .#{$prefix}--chat-btn--quick-action--selected:hover {
67
- color: $text-secondary;
75
+ .#{$prefix}--chat-btn--quick-action.#{$prefix}--chat-btn--quick-action--selected:not(
76
+ [disabled]
77
+ ):hover,
78
+ .#{$prefix}--chat-btn--quick-action.#{$prefix}--chat-btn--quick-action--selected:not(
79
+ [disabled]
80
+ ):active {
81
+ color: $chat-button-text-selected;
68
82
  }
69
83
 
70
84
  .#{$prefix}--chat-btn.#{$prefix}--skeleton {
@@ -330,4 +330,32 @@
330
330
  .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
331
331
  padding-inline-end: $spacing-12;
332
332
  }
333
+
334
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box__selection {
335
+ inset-inline-end: convert.to-rem(41px);
336
+ }
337
+
338
+ .#{$prefix}--list-box__wrapper--fluid .#{$prefix}--list-box--warning,
339
+ .#{$prefix}--list-box__wrapper--fluid
340
+ .#{$prefix}--list-box--invalid[data-invalid] {
341
+ .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
342
+ .#{$prefix}--list-box__selection::before {
343
+ position: absolute;
344
+ background-color: transparent;
345
+ block-size: convert.to-rem(16px);
346
+ content: '';
347
+ inline-size: convert.to-rem(1px);
348
+ margin-inline-end: convert.to-rem(33px);
349
+ }
350
+ }
351
+
352
+ .#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--multi-select)
353
+ .#{$prefix}--list-box__menu-icon {
354
+ inset-inline-end: calc($spacing-04);
355
+ }
356
+
357
+ .#{$prefix}--list-box__wrapper--fluid:has(.#{$prefix}--dropdown)
358
+ .#{$prefix}--list-box__menu-icon {
359
+ inset-inline-end: calc($spacing-04);
360
+ }
333
361
  }
@@ -59,6 +59,7 @@
59
59
  }
60
60
 
61
61
  .#{$prefix}--search--fluid .#{$prefix}--search-magnifier-icon {
62
+ color: $icon-primary;
62
63
  inset: auto 1rem convert.to-rem(13px) auto;
63
64
  transform: none;
64
65
  }
@@ -71,16 +72,6 @@
71
72
  transition: background-color $duration-fast-01 motion(standard, productive);
72
73
  }
73
74
 
74
- .#{$prefix}--search--fluid .#{$prefix}--search-close::before {
75
- position: absolute;
76
- display: block;
77
- background: $border-subtle;
78
- block-size: 1rem;
79
- content: '';
80
- inline-size: convert.to-rem(1px);
81
- inset: auto convert.to-rem(-1px) convert.to-rem(14px) auto;
82
- }
83
-
84
75
  .#{$prefix}--search--fluid
85
76
  .#{$prefix}--search-input:focus
86
77
  ~ .#{$prefix}--search-close:hover {
@@ -19,6 +19,10 @@ $link-hover-text-color: custom-property.get-var(
19
19
  'link-hover-text-color',
20
20
  $link-primary-hover
21
21
  );
22
+ $link-visited-text-color: custom-property.get-var(
23
+ 'link-visited-text-color',
24
+ $link-visited
25
+ );
22
26
  $link-focus-text-color: custom-property.get-var(
23
27
  'link-focus-text-color',
24
28
  $focus
@@ -48,7 +52,7 @@ $link-focus-text-color: custom-property.get-var(
48
52
  &:active:visited:hover {
49
53
  @include focus-outline;
50
54
 
51
- color: $text-primary;
55
+ color: $link-text-color;
52
56
  outline-color: $link-focus-text-color;
53
57
  text-decoration: underline;
54
58
  }
@@ -61,11 +65,11 @@ $link-focus-text-color: custom-property.get-var(
61
65
  }
62
66
 
63
67
  &:visited {
64
- color: $link-primary;
68
+ color: $link-visited-text-color;
65
69
  }
66
70
 
67
71
  &:visited:hover {
68
- color: $link-primary-hover;
72
+ color: $link-visited-text-color;
69
73
  }
70
74
  }
71
75
 
@@ -81,11 +85,11 @@ $link-focus-text-color: custom-property.get-var(
81
85
  }
82
86
 
83
87
  .#{$prefix}--link.#{$prefix}--link--visited:visited {
84
- color: $link-visited;
88
+ color: $link-visited-text-color;
85
89
  }
86
90
 
87
91
  .#{$prefix}--link.#{$prefix}--link--visited:visited:hover {
88
- color: $link-primary-hover;
92
+ color: $link-hover-text-color;
89
93
  }
90
94
 
91
95
  .#{$prefix}--link.#{$prefix}--link--inline {
@@ -331,7 +331,7 @@ $list-box-menu-width: convert.to-rem(300px);
331
331
 
332
332
  // populated input field
333
333
  .#{$prefix}--list-box__field .#{$prefix}--text-input {
334
- padding-inline-end: convert.to-rem(72px);
334
+ padding-inline-end: convert.to-rem(80px);
335
335
  }
336
336
 
337
337
  // invalid && populated input field
@@ -342,7 +342,7 @@ $list-box-menu-width: convert.to-rem(300px);
342
342
  .#{$prefix}--list-box__field
343
343
  .#{$prefix}--text-input {
344
344
  // to account for clear input button outline
345
- padding-inline-end: convert.to-rem(98px);
345
+ padding-inline-end: convert.to-rem(105px);
346
346
  }
347
347
 
348
348
  .#{$prefix}--list-box[data-invalid]
@@ -354,7 +354,7 @@ $list-box-menu-width: convert.to-rem(300px);
354
354
  .#{$prefix}--text-input
355
355
  + .#{$prefix}--list-box__invalid-icon {
356
356
  // to account for clear input button outline
357
- inset-inline-end: convert.to-rem(66px);
357
+ inset-inline-end: convert.to-rem(82px);
358
358
  }
359
359
 
360
360
  // empty input field
@@ -434,7 +434,7 @@ $list-box-menu-width: convert.to-rem(300px);
434
434
  inline-size: convert.to-rem(24px);
435
435
  inset-block-start: 50%;
436
436
  /* to preserve .5rem space between icons according to spec top/transform used to center the combobox clear selection icon in IE11 */
437
- inset-inline-end: convert.to-rem(36px);
437
+ inset-inline-end: convert.to-rem(45px);
438
438
  transform: translateY(-50%);
439
439
  transition: background-color $duration-fast-01 motion(standard, productive);
440
440
  user-select: none;
@@ -893,10 +893,30 @@ $list-box-menu-width: convert.to-rem(300px);
893
893
  .#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug {
894
894
  position: absolute;
895
895
  inset-block-start: 50%;
896
- inset-inline-end: $spacing-08;
896
+ inset-inline-end: calc($spacing-08 + 9px);
897
+ margin-block-start: convert.to-rem(0.5px);
897
898
  transform: translateY(-50%);
898
899
  }
899
900
 
901
+ .#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after,
902
+ .#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
903
+ position: absolute;
904
+ background-color: $border-subtle-01;
905
+ block-size: convert.to-rem(16px);
906
+ content: '';
907
+ inline-size: convert.to-rem(1px);
908
+ }
909
+
910
+ .#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::before {
911
+ display: none;
912
+ inset-inline-start: convert.to-rem(-9px);
913
+ }
914
+
915
+ .#{$prefix}--list-box__wrapper--slug .#{$prefix}--slug::after {
916
+ display: block;
917
+ inset-inline-end: convert.to-rem(-9px);
918
+ }
919
+
900
920
  .#{$prefix}--list-box__wrapper--slug
901
921
  .#{$prefix}--list-box:not(:has(.#{$prefix}--slug--revert)) {
902
922
  @include ai-gradient;
@@ -939,33 +959,50 @@ $list-box-menu-width: convert.to-rem(300px);
939
959
  .#{$prefix}--list-box__wrapper--slug
940
960
  .#{$prefix}--list-box--warning
941
961
  .#{$prefix}--text-input:not(.#{$prefix}--text-input--empty) {
942
- padding-inline-end: convert.to-rem(120px);
962
+ padding-inline-end: convert.to-rem(141px);
943
963
  }
944
964
 
945
965
  .#{$prefix}--list-box__wrapper--slug
946
- .#{$prefix}--list-box--invalid
947
- .#{$prefix}--slug,
966
+ .#{$prefix}--list-box--invalid[data-invalid]
967
+ .#{$prefix}--text-input--empty
968
+ + .#{$prefix}--list-box__invalid-icon,
969
+ .#{$prefix}--list-box__wrapper--slug
970
+ .#{$prefix}--list-box--invalid[data-invalid]
971
+ .#{$prefix}--list-box__invalid-icon,
972
+ .#{$prefix}--list-box__wrapper--slug
973
+ .#{$prefix}--list-box--warning
974
+ .#{$prefix}--list-box__invalid-icon.#{$prefix}--list-box__invalid-icon--warning {
975
+ inset-inline-end: convert.to-rem(83px);
976
+ }
977
+
978
+ .#{$prefix}--list-box__wrapper--slug
979
+ .#{$prefix}--list-box--invalid[data-invalid]
980
+ .#{$prefix}--slug::before,
948
981
  .#{$prefix}--list-box__wrapper--slug
949
982
  .#{$prefix}--list-box--warning
950
- .#{$prefix}--slug {
951
- inset-inline-end: $spacing-10;
983
+ .#{$prefix}--slug::before {
984
+ display: block;
952
985
  }
953
986
 
954
987
  .#{$prefix}--list-box__wrapper--slug
988
+ .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
989
+ ~ .#{$prefix}--slug,
990
+ .#{$prefix}--list-box__wrapper--slug
991
+ .#{$prefix}--list-box--warning
955
992
  .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
956
993
  ~ .#{$prefix}--slug {
957
- inset-inline-end: $spacing-10;
994
+ inset-inline-end: calc($spacing-10 + 18px);
958
995
  }
959
996
 
960
997
  .#{$prefix}--list-box__wrapper--slug
961
998
  .#{$prefix}--list-box--invalid
962
999
  .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
963
- ~ .#{$prefix}--slug,
1000
+ .#{$prefix}--list-box__invalid-icon,
964
1001
  .#{$prefix}--list-box__wrapper--slug
965
1002
  .#{$prefix}--list-box--warning
966
1003
  .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__selection)
967
- ~ .#{$prefix}--slug {
968
- inset-inline-end: convert.to-rem(88px);
1004
+ .#{$prefix}--list-box__invalid-icon {
1005
+ inset-inline-end: convert.to-rem(116px);
969
1006
  }
970
1007
 
971
1008
  // Windows HCM fix
@@ -987,4 +1024,37 @@ $list-box-menu-width: convert.to-rem(300px);
987
1024
  .#{$prefix}--list-box__selection--multi > svg {
988
1025
  @include high-contrast-mode('icon-fill');
989
1026
  }
1027
+
1028
+ .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
1029
+ .#{$prefix}--list-box__selection::after {
1030
+ position: absolute;
1031
+ background-color: $border-subtle-01;
1032
+ block-size: convert.to-rem(16px);
1033
+ content: '';
1034
+ inline-size: convert.to-rem(1px);
1035
+ margin-inline-start: convert.to-rem(33px);
1036
+ }
1037
+
1038
+ .#{$prefix}--list-box--warning,
1039
+ .#{$prefix}--list-box--invalid[data-invalid] {
1040
+ .#{$prefix}--list-box__field:has(.#{$prefix}--list-box__menu-icon)
1041
+ .#{$prefix}--list-box__selection::before {
1042
+ position: absolute;
1043
+ background-color: $border-subtle-01;
1044
+ block-size: convert.to-rem(16px);
1045
+ content: '';
1046
+ inline-size: convert.to-rem(1px);
1047
+ margin-inline-end: convert.to-rem(33px);
1048
+ }
1049
+ }
1050
+
1051
+ .#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--multi-select)
1052
+ .#{$prefix}--list-box__menu-icon {
1053
+ inset-inline-end: calc($spacing-04 - 4px);
1054
+ }
1055
+
1056
+ .#{$prefix}--list-box__wrapper--slug:has(.#{$prefix}--dropdown)
1057
+ .#{$prefix}--list-box__menu-icon {
1058
+ inset-inline-end: calc($spacing-04 - 4px);
1059
+ }
990
1060
  }
@@ -63,6 +63,10 @@
63
63
  'link-hover-text-color',
64
64
  theme.$link-inverse
65
65
  );
66
+ @include custom-property.declaration(
67
+ 'link-visited-text-color',
68
+ theme.$link-inverse
69
+ );
66
70
  @include custom-property.declaration(
67
71
  'link-focus-text-color',
68
72
  theme.$focus-inverse