@carbon/ibm-products 2.1.0 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. package/css/index-full-carbon.css +215 -57
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +3 -3
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +58 -10
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +91 -29
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +3 -3
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +113 -27
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +3 -3
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/AboutModal/AboutModal.js +1 -3
  18. package/es/components/ActionBar/ActionBar.js +2 -6
  19. package/es/components/AddSelect/AddSelectFormControl.js +6 -6
  20. package/es/components/AddSelect/AddSelectRow.js +15 -5
  21. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -6
  22. package/es/components/ButtonMenu/ButtonMenu.js +4 -4
  23. package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -9
  24. package/es/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  25. package/es/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  26. package/es/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
  27. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  28. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +5 -11
  29. package/es/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
  30. package/es/components/Datagrid/useStickyColumn.js +10 -3
  31. package/es/components/Datagrid/utils/DatagridActions.js +6 -14
  32. package/es/components/ImportModal/ImportModal.js +13 -6
  33. package/es/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  34. package/es/components/PageHeader/PageHeader.js +2 -6
  35. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  36. package/es/components/SidePanel/SidePanel.js +1 -3
  37. package/es/components/TagSet/TagSet.js +4 -7
  38. package/es/components/Tearsheet/TearsheetShell.js +4 -5
  39. package/es/global/js/hooks/useCreateComponentStepChange.js +16 -15
  40. package/es/global/js/hooks/useResizeObserver.js +14 -28
  41. package/es/global/js/utils/story-helper.js +1 -1
  42. package/lib/components/AboutModal/AboutModal.js +1 -3
  43. package/lib/components/ActionBar/ActionBar.js +2 -6
  44. package/lib/components/AddSelect/AddSelectFormControl.js +6 -6
  45. package/lib/components/AddSelect/AddSelectRow.js +15 -5
  46. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -6
  47. package/lib/components/ButtonMenu/ButtonMenu.js +4 -4
  48. package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +3 -9
  49. package/lib/components/DataSpreadsheet/DataSpreadsheet.js +3 -3
  50. package/lib/components/Datagrid/Datagrid/DatagridContent.js +1 -1
  51. package/lib/components/Datagrid/Datagrid/DatagridVirtualBody.js +1 -3
  52. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +1 -1
  53. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +4 -10
  54. package/lib/components/Datagrid/Datagrid/addons/InlineEdit/InlineEditCell/InlineEditCell.js +17 -17
  55. package/lib/components/Datagrid/useStickyColumn.js +10 -3
  56. package/lib/components/Datagrid/utils/DatagridActions.js +5 -13
  57. package/lib/components/ImportModal/ImportModal.js +13 -6
  58. package/lib/components/NotificationsPanel/preview-components/UnreadNotificationBell.js +2 -17
  59. package/lib/components/PageHeader/PageHeader.js +2 -6
  60. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  61. package/lib/components/SidePanel/SidePanel.js +1 -3
  62. package/lib/components/TagSet/TagSet.js +4 -7
  63. package/lib/components/Tearsheet/TearsheetShell.js +4 -5
  64. package/lib/global/js/hooks/useCreateComponentStepChange.js +16 -15
  65. package/lib/global/js/hooks/useResizeObserver.js +13 -27
  66. package/lib/global/js/utils/story-helper.js +1 -1
  67. package/package.json +17 -17
  68. package/scss/components/AddSelect/_add-select.scss +4 -0
  69. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +0 -1
  70. package/scss/components/ButtonMenu/_button-menu.scss +32 -1
  71. package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
  72. package/scss/components/Datagrid/_datagrid.scss +4 -2
  73. package/scss/components/Datagrid/_storybook-styles.scss +15 -1
  74. package/scss/components/Datagrid/styles/_datagrid.scss +12 -13
  75. package/scss/components/Datagrid/styles/addons/_FilterFlyout.scss +7 -0
  76. package/scss/components/Datagrid/styles/addons/_FilterPanel.scss +4 -0
  77. package/scss/components/HTTPErrors/_storybook-styles.scss +16 -2
  78. package/scss/components/NotificationsPanel/_storybook-styles.scss +0 -4
  79. package/scss/components/PageHeader/_page-header.scss +0 -1
  80. package/scss/components/PageHeader/_storybook-styles.scss +42 -14
  81. package/scss/components/SidePanel/_side-panel.scss +0 -2
  82. package/scss/components/Tearsheet/_tearsheet.scss +7 -6
  83. package/scss/components/WebTerminal/_storybook-styles.scss +16 -1
  84. package/scss/global/styles/_display-box.scss +1 -0
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibm-products",
3
3
  "description": "Carbon for IBM Products",
4
- "version": "2.1.0",
4
+ "version": "2.1.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -54,27 +54,27 @@
54
54
  "upgrade-dependencies": "npm-check-updates -u --dep dev,peer,prod --color --reject '/(carbon|^react$|^react-dom$|^chalk$|^react-dnd|^namor)/'"
55
55
  },
56
56
  "devDependencies": {
57
- "@babel/cli": "^7.20.7",
58
- "@babel/core": "^7.20.12",
59
- "babel-preset-ibm-cloud-cognitive": "^0.14.34",
57
+ "@babel/cli": "^7.21.5",
58
+ "@babel/core": "^7.22.1",
59
+ "babel-preset-ibm-cloud-cognitive": "^0.14.36",
60
60
  "chalk": "^4.1.2",
61
61
  "change-case": "^4.1.2",
62
62
  "copyfiles": "^2.4.1",
63
63
  "cross-env": "^7.0.3",
64
64
  "fs-extra": "^11.1.1",
65
- "glob": "^10.2.3",
66
- "jest": "^29.4.2",
67
- "jest-config-ibm-cloud-cognitive": "^0.24.21",
68
- "jest-environment-jsdom": "^29.4.2",
65
+ "glob": "^10.2.6",
66
+ "jest": "^29.5.0",
67
+ "jest-config-ibm-cloud-cognitive": "^0.24.23",
68
+ "jest-environment-jsdom": "^29.5.0",
69
69
  "namor": "^1.1.2",
70
70
  "npm-check-updates": "^16.10.12",
71
71
  "npm-run-all": "^4.1.5",
72
- "rimraf": "^5.0.0",
72
+ "rimraf": "^5.0.1",
73
73
  "sass": "^1.62.1",
74
74
  "yargs": "^17.7.2"
75
75
  },
76
76
  "dependencies": {
77
- "@babel/runtime": "^7.20.13",
77
+ "@babel/runtime": "^7.22.3",
78
78
  "@carbon/telemetry": "^0.1.0",
79
79
  "framer-motion": "^6.5.1 < 7",
80
80
  "immutability-helper": "^3.1.1",
@@ -85,14 +85,14 @@
85
85
  "react-window": "^1.8.9"
86
86
  },
87
87
  "peerDependencies": {
88
- "@carbon/grid": "^11.13.0",
89
- "@carbon/layout": "^11.13.0",
90
- "@carbon/motion": "^11.10.0",
91
- "@carbon/react": "~1.28.0",
92
- "@carbon/themes": "^11.18.0",
93
- "@carbon/type": "^11.17.0",
88
+ "@carbon/grid": "^11.14.0",
89
+ "@carbon/layout": "^11.14.0",
90
+ "@carbon/motion": "^11.11.0",
91
+ "@carbon/react": "~1.30.0",
92
+ "@carbon/themes": "^11.19.0",
93
+ "@carbon/type": "^11.18.0",
94
94
  "react": "^16.8.6 || ^17.0.1",
95
95
  "react-dom": "^16.8.6 || ^17.0.1"
96
96
  },
97
- "gitHead": "7d5b5013039a6d98e3aab8375a7ea249c44ee4ae"
97
+ "gitHead": "32a25a322d0213e135506f646b0ad5721e67d813"
98
98
  }
@@ -77,6 +77,10 @@ $tearsheet-class: #{$pkg-prefix}--tearsheet;
77
77
  align-items: center;
78
78
  }
79
79
 
80
+ &-form-control-wrapper--radio {
81
+ cursor: pointer;
82
+ }
83
+
80
84
  &-form-control-label-wrapper {
81
85
  display: flex;
82
86
  margin-left: $spacing-05;
@@ -92,6 +92,5 @@ $_block-class: #{c4p-settings.$pkg-prefix}--breadcrumb-with-overflow;
92
92
 
93
93
  .#{$_block-class}__overflow-menu-options.#{$_block-class}__overflow-menu-options {
94
94
  // Need to disable stylelint until dart sass namespace support is added
95
- /* stylelint-disable-next-line function-no-unknown */
96
95
  z-index: utilities.z('header');
97
96
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2021
2
+ // Copyright IBM Corp. 2021, 2023
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.
@@ -7,7 +7,10 @@
7
7
 
8
8
  // Standard imports.
9
9
  @use '@carbon/styles/scss/spacing' as *;
10
+ @use '@carbon/styles/scss/components/button/tokens' as *;
10
11
  @use '../../global/styles/project-settings' as c4p-settings;
12
+ @use '@carbon/react/scss/theme' as *;
13
+ @use '@carbon/styles/scss/type';
11
14
 
12
15
  // TODO: @use(s) of Carbon settings and component styles and other
13
16
  // related component styles used by ButtonMenu
@@ -17,9 +20,37 @@ $block-class: #{c4p-settings.$pkg-prefix}--button-menu;
17
20
 
18
21
  .#{$block-class} {
19
22
  min-width: 160px;
23
+ &.#{$block-class}__wrapper--primary,
24
+ &.#{$block-class}__wrapper--primary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
25
+ background-color: $button-primary;
26
+ }
27
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--primary:hover {
28
+ background-color: $button-primary-hover;
29
+ }
30
+
31
+ &.#{$block-class}__wrapper--tertiary,
32
+ &.#{$block-class}__wrapper--tertiary.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
33
+ background-color: $button-tertiary;
34
+ }
35
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--tertiary:hover {
36
+ background-color: $button-tertiary-hover;
37
+ }
38
+
39
+ &.#{$block-class}__wrapper--ghost,
40
+ &.#{$block-class}__wrapper--ghost.#{c4p-settings.$carbon-prefix}--overflow-menu.#{c4p-settings.$carbon-prefix}--overflow-menu--open {
41
+ background-color: transparent;
42
+ }
43
+ &.#{c4p-settings.$carbon-prefix}--overflow-menu.#{$block-class}__wrapper--ghost:hover {
44
+ background-color: $layer-hover;
45
+ }
20
46
 
21
47
  .#{$block-class}__trigger {
48
+ @include type.type-style('body-compact-01');
49
+
50
+ display: flex;
22
51
  width: 100%;
52
+ align-items: center;
53
+ justify-content: space-between;
23
54
  padding: 0 $spacing-05;
24
55
  }
25
56
  }
@@ -4,3 +4,9 @@
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.
6
6
  //
7
+
8
+ $story-anchor: 'data-spreadsheet';
9
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
10
+ overflow: auto;
11
+ width: 100%;
12
+ }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2022
2
+ // Copyright IBM Corp. 2022, 2023
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.
@@ -22,6 +22,7 @@
22
22
 
23
23
  // Datagrid uses the following Carbon for IBM Products components:
24
24
  // TODO: @use(s) of IBM Products component styles used by Datagrid
25
+ @use '../ButtonMenu';
25
26
 
26
27
  // The block part of our conventional BEM class names (blockClass__E--M).
27
28
  $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
@@ -33,7 +34,8 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
33
34
  display: none;
34
35
  }
35
36
 
36
- .bx--overflow-menu-options > .c4p--datagrid__row-size-dropdown {
37
+ .#{c4p-settings.$carbon-prefix}--overflow-menu-options
38
+ > .#{c4p-settings.$pkg-prefix}--datagrid__row-size-dropdown {
37
39
  left: $spacing-01;
38
40
  width: 112px;
39
41
  }
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2022, 2022
2
+ // Copyright IBM Corp. 2022, 2023
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.
@@ -114,3 +114,17 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
114
114
  margin-right: $spacing-03;
115
115
  background-color: $field-01;
116
116
  }
117
+
118
+ .#{c4p-settings.$carbon-prefix}--body--with-modal-open {
119
+ .#{$block-class}__mobile-toolbar-modal.#{c4p-settings.$carbon-prefix}--modal {
120
+ top: -$spacing-07;
121
+ left: -$spacing-07;
122
+ width: 100vw;
123
+ }
124
+ }
125
+
126
+ $story-anchor: 'datagrid';
127
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child > div:first-child {
128
+ overflow: auto;
129
+ width: 100%;
130
+ }
@@ -1,10 +1,9 @@
1
- /*
2
- * Licensed Materials - Property of IBM
3
- * 5724-Q36
4
- * (c) Copyright IBM Corp. 2020 - 2021
5
- * US Government Users Restricted Rights - Use, duplication or disclosure
6
- * restricted by GSA ADP Schedule Contract with IBM Corp.
7
- */
1
+ //
2
+ // Copyright IBM Corp. 2020, 2023
3
+ //
4
+ // This source code is licensed under the Apache-2.0 license found in the
5
+ // LICENSE file in the root directory of this source tree.
6
+ //
8
7
 
9
8
  @use '@carbon/styles/scss/theme' as *;
10
9
  @use '@carbon/styles/scss/spacing' as *;
@@ -582,12 +581,6 @@
582
581
  width: 100%;
583
582
  }
584
583
 
585
- .#{c4p-settings.$carbon-prefix}--body--with-modal-open
586
- .#{$block-class}__grid-container {
587
- overflow: hidden;
588
- height: 100vh;
589
- }
590
-
591
584
  .#{$block-class} .#{c4p-settings.$carbon-prefix}--modal {
592
585
  width: 100%;
593
586
  }
@@ -632,3 +625,9 @@
632
625
  .#{$block-class} .#{c4p-settings.$pkg-prefix}--datagrid__head-wrap {
633
626
  background-color: $layer-accent;
634
627
  }
628
+
629
+ .#{$block-class}
630
+ .#{c4p-settings.$carbon-prefix}--action-list
631
+ .#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$pkg-prefix}--button-menu {
632
+ padding: 0;
633
+ }
@@ -75,6 +75,13 @@ $action-set-height: rem(64px);
75
75
  }
76
76
 
77
77
  // Carbon overrides
78
+ .#{variables.$block-class}-filter-flyout__trigger.#{c4p-settings.$carbon-prefix}--btn {
79
+ display: flex;
80
+ width: 3rem;
81
+ height: 3rem;
82
+ justify-content: center;
83
+ }
84
+
78
85
  .#{variables.$block-class}-filter-flyout__trigger--open.#{c4p-settings.$carbon-prefix}--btn.#{c4p-settings.$carbon-prefix}--btn--icon-only {
79
86
  position: relative;
80
87
  background-color: $layer-02;
@@ -124,6 +124,10 @@
124
124
  }
125
125
 
126
126
  .#{c4p-settings.$carbon-prefix}--btn.c4p--datagrid-filter-panel-open-button {
127
+ display: flex;
128
+ width: 3rem;
129
+ height: 3rem;
130
+ justify-content: center;
127
131
  border-right: 1px solid $layer-accent-01;
128
132
  border-bottom: none;
129
133
  }
@@ -1,6 +1,20 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
1
+ // Copyright IBM Corp. 2023, 2023
3
2
  //
4
3
  // This source code is licensed under the Apache-2.0 license found in the
5
4
  // LICENSE file in the root directory of this source tree.
6
5
  //
6
+ $story-anchor: 'http-errors';
7
+ div[id*='#{$story-anchor}'] .docs-story {
8
+ min-height: 50vh;
9
+ /* stylelint-disable-next-line carbon/layout-token-use */
10
+ transform: translateZ(0);
11
+ }
12
+
13
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
14
+ overflow: auto;
15
+ width: 100%;
16
+ }
17
+
18
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
19
+ min-height: 50vh;
20
+ }
@@ -9,7 +9,3 @@
9
9
  @use '../../global/styles/project-settings' as c4p-settings;
10
10
 
11
11
  $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
12
-
13
- .#{$storybook-block-class}--header {
14
- @include theme(themes.$g100);
15
- }
@@ -29,7 +29,6 @@ $block-class: #{$pkg-prefix}--page-header;
29
29
  $breadcrumb-block-class: #{$pkg-prefix}--breadcrumb-with-overflow;
30
30
 
31
31
  $raised-z-index: 99;
32
- /* stylelint-disable-next-line function-no-unknown */
33
32
  $z-index-header-minus: utilities.z('header') - 1;
34
33
 
35
34
  $left-section-std-width: 60%;
@@ -15,15 +15,6 @@
15
15
 
16
16
  $story-class: 'page-header-stories';
17
17
 
18
- // cspell:disable-next-line
19
- .sbdocs .#{$story-class}__viewport {
20
- max-height: 500px;
21
- background-color: $background;
22
- box-shadow: 0 0 4px 1px $layer-accent-01;
23
- color: $text-primary;
24
- overflow-y: auto;
25
- }
26
-
27
18
  .#{$story-class}__content-switcher {
28
19
  justify-content: flex-start;
29
20
  }
@@ -66,15 +57,52 @@ $story-class: 'page-header-stories';
66
57
  flex-direction: column;
67
58
  }
68
59
 
69
- .#{$story-class}__app--whole-page-scroll {
60
+ $story-anchor: 'page-header';
61
+ div[id*='#{$story-anchor}'] .docs-story {
62
+ --story-height: 50vh;
63
+
64
+ min-height: var(--story-height);
65
+ /* stylelint-disable-next-line carbon/layout-token-use */
66
+ transform: translateZ(0);
67
+ }
68
+
69
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
70
70
  overflow: hidden;
71
+ width: 100%;
71
72
  }
72
73
 
73
- .#{$story-class}__content-container {
74
- height: 100%;
75
- padding: 0;
74
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
75
+ min-height: 50vh;
76
+ }
77
+
78
+ .#{$story-class}__viewport {
79
+ overflow: hidden;
80
+ height: 100vh;
76
81
  }
77
82
 
78
- .#{$story-class}__app--whole-page-scroll .#{$story-class}__content-container {
83
+ .#{$story-class}__viewport--scroll {
79
84
  overflow-y: auto;
80
85
  }
86
+
87
+ .#{$story-class}__viewport .#{$story-class}__content-container {
88
+ height: 100%;
89
+ overflow-y: auto;
90
+ }
91
+
92
+ .#{$story-class}__viewport
93
+ .#{$story-class}__content-container--with-global-header {
94
+ height: calc(100% - #{$spacing-09});
95
+ margin-top: $spacing-09;
96
+ }
97
+
98
+ .#{$story-class}__viewport--scroll .#{$story-class}__content-container {
99
+ overflow-y: initial;
100
+ }
101
+
102
+ // cspell:disable-next-line
103
+ .sbdocs .#{$story-class}__viewport {
104
+ max-height: 50vh;
105
+ background-color: $background;
106
+ box-shadow: 0 0 4px 1px $layer-accent-01;
107
+ color: $text-primary;
108
+ }
@@ -64,7 +64,6 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
64
64
 
65
65
  position: fixed;
66
66
  // Need to disable stylelint until dart sass namespace support is added
67
- /* stylelint-disable-next-line function-no-unknown */
68
67
  z-index: utilities.z('modal');
69
68
  top: $spacing-09;
70
69
  height: calc(100% - 3rem);
@@ -441,7 +440,6 @@ $action-set-block-class: #{c4p-settings.$pkg-prefix}--action-set;
441
440
  .#{$block-class}__overlay {
442
441
  position: fixed;
443
442
  // Need to disable stylelint until dart sass namespace support is added
444
- /* stylelint-disable-next-line function-no-unknown */
445
443
  z-index: utilities.z('overlay');
446
444
  width: 100%;
447
445
  height: 100%;
@@ -30,7 +30,6 @@ $motion-duration: $duration-moderate-02;
30
30
  @include block-wrap($block-class) {
31
31
  &.#{$block-class} {
32
32
  // Need to disable stylelint until dart sass namespace support is added
33
- /* stylelint-disable-next-line function-no-unknown */
34
33
  z-index: utilities.z('modal') + 1;
35
34
  align-items: flex-end;
36
35
  color: $text-primary;
@@ -44,7 +43,6 @@ $motion-duration: $duration-moderate-02;
44
43
 
45
44
  &.is-visible {
46
45
  // Need to disable stylelint until dart sass namespace support is added
47
- /* stylelint-disable-next-line function-no-unknown */
48
46
  z-index: utilities.z('modal');
49
47
  align-items: flex-end;
50
48
  // stylelint-disable-next-line carbon/motion-duration-use, carbon/motion-easing-use
@@ -58,7 +56,6 @@ $motion-duration: $duration-moderate-02;
58
56
 
59
57
  &.#{$block-class}--stacked-1-of-2 {
60
58
  // Need to disable stylelint until dart sass namespace support is added
61
- /* stylelint-disable-next-line function-no-unknown */
62
59
  z-index: utilities.z('modal') - 1;
63
60
  // stylelint-disable-next-line carbon/theme-token-use
64
61
  background-color: rgba($overlay-color, 0.33);
@@ -66,7 +63,6 @@ $motion-duration: $duration-moderate-02;
66
63
 
67
64
  &.#{$block-class}--stacked-1-of-3 {
68
65
  // Need to disable stylelint until dart sass namespace support is added
69
- /* stylelint-disable-next-line function-no-unknown */
70
66
  z-index: utilities.z('modal') - 2;
71
67
  // stylelint-disable-next-line carbon/theme-token-use
72
68
  background-color: rgba($overlay-color, 0.11);
@@ -74,7 +70,6 @@ $motion-duration: $duration-moderate-02;
74
70
 
75
71
  &.#{$block-class}--stacked-2-of-3 {
76
72
  // Need to disable stylelint until dart sass namespace support is added
77
- /* stylelint-disable-next-line function-no-unknown */
78
73
  z-index: utilities.z('modal') - 1;
79
74
  // stylelint-disable-next-line carbon/theme-token-use
80
75
  background-color: rgba($overlay-color, 0.25);
@@ -151,12 +146,14 @@ $motion-duration: $duration-moderate-02;
151
146
  padding: $spacing-06 $spacing-07;
152
147
  border-bottom: 1px solid $border-subtle-01;
153
148
  margin: 0;
149
+ background-color: $layer;
154
150
  }
155
151
 
156
152
  &.#{$block-class}--narrow .#{$block-class}__header {
157
153
  padding: $spacing-05;
158
154
  border-bottom: 1px solid $border-subtle-01;
159
155
  margin: 0;
156
+ background-color: $layer;
160
157
  }
161
158
 
162
159
  .#{$block-class}__header-content {
@@ -270,11 +267,15 @@ $motion-duration: $duration-moderate-02;
270
267
  .#{$block-class}__main {
271
268
  display: flex;
272
269
  flex-direction: row;
273
- background-color: $layer;
270
+ background-color: $background;
274
271
  grid-column: 1 / -1;
275
272
  grid-row: 1 / -1;
276
273
  }
277
274
 
275
+ &.#{$block-class}--narrow .#{$block-class}__main {
276
+ background-color: $layer;
277
+ }
278
+
278
279
  .#{$block-class}__main .#{$block-class}__influencer {
279
280
  border-right: none;
280
281
  border-left: 1px solid $border-subtle-01;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Copyright IBM Corp. 2021, 2022
2
+ // Copyright IBM Corp. 2021, 2023
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.
@@ -34,3 +34,18 @@ $storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
34
34
  font-size: 14px;
35
35
  }
36
36
  }
37
+
38
+ $story-anchor: 'web-terminal';
39
+ div[id*='#{$story-anchor}'] .docs-story {
40
+ min-height: 50vh;
41
+ transform: translateZ(0);
42
+ }
43
+
44
+ div[id*='#{$story-anchor}'] .docs-story > div:first-child {
45
+ width: 100%;
46
+ overflow: hidden;
47
+ }
48
+
49
+ div[id*='#{$story-anchor}'] .docs-story .preview-position-fix {
50
+ min-height: 50vh;
51
+ }
@@ -22,6 +22,7 @@ $indicator-height: $spacing-04;
22
22
  position: relative;
23
23
  display: inline-block;
24
24
  padding-top: $spacing-05; // space for the indicators
25
+ margin-top: $spacing-09; // provides space in docs
25
26
  color: $text-helper;
26
27
  }
27
28