@carbon/styles 0.16.0-rc.0 → 0.16.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.
Files changed (75) hide show
  1. package/package.json +17 -9
  2. package/scss/__tests__/__snapshots__/colors-test.js.snap +404 -0
  3. package/scss/__tests__/__snapshots__/config-test.js.snap +15 -0
  4. package/scss/__tests__/__snapshots__/motion-test.js.snap +39 -0
  5. package/scss/__tests__/breakpoint-test.js +42 -0
  6. package/scss/__tests__/colors-test.js +28 -0
  7. package/scss/__tests__/config-test.js +53 -0
  8. package/scss/__tests__/grid-test.js +48 -0
  9. package/scss/__tests__/layer-test.js +82 -0
  10. package/scss/__tests__/motion-test.js +37 -0
  11. package/scss/__tests__/reset-test.js +28 -0
  12. package/scss/__tests__/theme-test.js +151 -0
  13. package/scss/__tests__/themes-test.js +36 -0
  14. package/scss/__tests__/type-test.js +78 -0
  15. package/scss/_config.scss +5 -0
  16. package/scss/_reset.scss +1 -1
  17. package/scss/components/__tests__/accordion-test.js +47 -0
  18. package/scss/components/__tests__/breadcrumb-test.js +27 -0
  19. package/scss/components/__tests__/button-test.js +71 -0
  20. package/scss/components/__tests__/checkbox-test.js +27 -0
  21. package/scss/components/__tests__/code-snippet-test.js +44 -0
  22. package/scss/components/__tests__/combo-box-test.js +27 -0
  23. package/scss/components/__tests__/content-switcher-test.js +27 -0
  24. package/scss/components/__tests__/copy-button-test.js +27 -0
  25. package/scss/components/__tests__/data-table-test.js +85 -0
  26. package/scss/components/__tests__/date-picker-test.js +26 -0
  27. package/scss/components/__tests__/dropdown-test.js +27 -0
  28. package/scss/components/__tests__/file-uploader.js +27 -0
  29. package/scss/components/__tests__/form-test.js +43 -0
  30. package/scss/components/__tests__/inline-loading-test.js +26 -0
  31. package/scss/components/__tests__/link-test.js +26 -0
  32. package/scss/components/__tests__/list-box-test.js +36 -0
  33. package/scss/components/__tests__/list-test.js +26 -0
  34. package/scss/components/__tests__/loading-test.js +26 -0
  35. package/scss/components/__tests__/menu-test.js +27 -0
  36. package/scss/components/__tests__/modal-test.js +27 -0
  37. package/scss/components/__tests__/multiselect-test.js +27 -0
  38. package/scss/components/__tests__/notification-test.js +49 -0
  39. package/scss/components/__tests__/number-input-test.js +27 -0
  40. package/scss/components/__tests__/overflow-menu-test.js +27 -0
  41. package/scss/components/__tests__/pagination-nav-test.js +26 -0
  42. package/scss/components/__tests__/pagination-test.js +26 -0
  43. package/scss/components/__tests__/progress-bar-test.js +26 -0
  44. package/scss/components/__tests__/progress-indicator-test.js +26 -0
  45. package/scss/components/__tests__/radio-button-test.js +25 -0
  46. package/scss/components/__tests__/search-test.js +25 -0
  47. package/scss/components/__tests__/select-test.js +26 -0
  48. package/scss/components/__tests__/skeleton-test.js +26 -0
  49. package/scss/components/__tests__/slider-test.js +26 -0
  50. package/scss/components/__tests__/structured-list-test.js +27 -0
  51. package/scss/components/__tests__/tabs-test.js +27 -0
  52. package/scss/components/__tests__/tag-test.js +25 -0
  53. package/scss/components/__tests__/text-area-test.js +26 -0
  54. package/scss/components/__tests__/text-input-test.js +26 -0
  55. package/scss/components/__tests__/tile-test.js +26 -0
  56. package/scss/components/__tests__/time-picker-test.js +26 -0
  57. package/scss/components/__tests__/toggle-test.js +27 -0
  58. package/scss/components/__tests__/tooltip-test.js +25 -0
  59. package/scss/components/__tests__/treeview-test.js +25 -0
  60. package/scss/components/__tests__/ui-shell-test.js +27 -0
  61. package/scss/components/data-table/_data-table.scss +21 -7
  62. package/scss/components/data-table/action/_data-table-action.scss +17 -19
  63. package/scss/components/data-table/sort/_data-table-sort.scss +1 -0
  64. package/scss/components/date-picker/_flatpickr.scss +2 -2
  65. package/scss/components/radio-button/_radio-button.scss +4 -3
  66. package/scss/components/select/_select.scss +7 -9
  67. package/scss/components/tabs/_tabs.scss +4 -0
  68. package/scss/fonts/__tests__/fonts-test.js +142 -0
  69. package/scss/{_grid.scss → grid/_config.scss} +3 -7
  70. package/scss/grid/_flexbox.scss +11 -0
  71. package/scss/grid/_index.scss +16 -0
  72. package/scss/{_type.scss → type/_index.scss} +1 -1
  73. package/scss/type/_reset.scss +8 -0
  74. package/scss/utilities/__tests__/custom-property-test.js +50 -0
  75. package/docs/sass.md +0 -461
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/progress-bar', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../progress-bar';
21
+
22
+ $_: get('mixin', meta.mixin-exists('progress-bar', 'progress-bar'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/progress-indicator', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../progress-indicator';
21
+
22
+ $_: get('mixin', meta.mixin-exists('progress-indicator', 'progress-indicator'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/radio-button', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../radio-button/radio-button';
21
+ $_: get('mixin', meta.mixin-exists('radio-button', 'radio-button'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/search', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../search';
21
+ $_: get('mixin', meta.mixin-exists('search', 'search'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/select', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../select';
21
+
22
+ $_: get('mixin', meta.mixin-exists('select', 'select'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/skeleton-styles', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../skeleton-styles';
21
+
22
+ $_: get('mixin', meta.mixin-exists('skeleton-styles', 'skeleton-styles'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/slider', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../slider';
21
+
22
+ $_: get('mixin', meta.mixin-exists('slider', 'slider'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/structured-list', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../structured-list';
22
+
23
+ $_: get('mixin', meta.mixin-exists('structured-list', 'structured-list'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/tabs', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../tabs';
22
+
23
+ $_: get('mixin', meta.mixin-exists('tabs', 'tabs'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/tag', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tag/tag';
21
+ $_: get('mixin', meta.mixin-exists('tag', 'tag'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/text-area', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../text-area';
21
+
22
+ $_: get('mixin', meta.mixin-exists('text-area', 'text-area'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/text-input', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../text-input';
21
+
22
+ $_: get('mixin', meta.mixin-exists('text-input', 'text-input'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/tile', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tile';
21
+
22
+ $_: get('mixin', meta.mixin-exists('tile', 'tile'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/time-picker', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../time-picker';
21
+
22
+ $_: get('mixin', meta.mixin-exists('time-picker', 'time-picker'));
23
+ `);
24
+ expect(unwrap('mixin')).toBe(true);
25
+ });
26
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/toggle', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../toggle';
22
+
23
+ $_: get('mixin', meta.mixin-exists('toggle', 'toggle'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/tooltip', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../tooltip/tooltip';
21
+ $_: get('mixin', meta.mixin-exists('tooltip', 'tooltip'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/treeview', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:meta';
20
+ @use '../treeview';
21
+ $_: get('mixin', meta.mixin-exists('treeview', 'treeview'));
22
+ `);
23
+ expect(unwrap('mixin')).toBe(true);
24
+ });
25
+ });
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Copyright IBM Corp. 2018, 2018
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
+ *
7
+ * @jest-environment node
8
+ */
9
+
10
+ 'use strict';
11
+
12
+ const { SassRenderer } = require('@carbon/test-utils/scss');
13
+
14
+ const { render } = SassRenderer.create(__dirname);
15
+
16
+ describe('scss/components/ui-shell', () => {
17
+ test('Public API', async () => {
18
+ const { unwrap } = await render(`
19
+ @use 'sass:map';
20
+ @use 'sass:meta';
21
+ @use '../ui-shell';
22
+
23
+ $_: get('mixin', meta.mixin-exists('ui-shell', 'ui-shell'));
24
+ `);
25
+ expect(unwrap('mixin')).toBe(true);
26
+ });
27
+ });
@@ -100,17 +100,30 @@
100
100
  color: $text-primary;
101
101
  }
102
102
 
103
- .#{$prefix}--data-table tbody tr:hover td .#{$prefix}--link,
104
- .#{$prefix}--data-table tbody tr:hover th .#{$prefix}--link {
103
+ .#{$prefix}--data-table tr:hover .#{$prefix}--link {
105
104
  color: $link-secondary;
106
105
  }
107
106
 
107
+ .#{$prefix}--data-table tr:hover .#{$prefix}--link--disabled {
108
+ color: $text-disabled;
109
+ }
110
+
108
111
  .#{$prefix}--data-table th,
109
112
  .#{$prefix}--data-table td {
110
113
  text-align: left;
111
114
  vertical-align: middle;
112
115
  }
113
116
 
117
+ .#{$prefix}--data-table th[align='right'],
118
+ .#{$prefix}--data-table td[align='right'] {
119
+ text-align: right;
120
+ }
121
+
122
+ .#{$prefix}--data-table th[align='center'],
123
+ .#{$prefix}--data-table td[align='center'] {
124
+ text-align: center;
125
+ }
126
+
114
127
  .#{$prefix}--data-table th {
115
128
  padding-right: $spacing-05;
116
129
  padding-left: $spacing-05;
@@ -238,7 +251,8 @@
238
251
  }
239
252
  }
240
253
 
241
- .#{$prefix}--data-table--selected .#{$prefix}--link {
254
+ .#{$prefix}--data-table--selected
255
+ .#{$prefix}--link:not(.#{$prefix}--link--disabled) {
242
256
  color: $link-secondary;
243
257
  }
244
258
 
@@ -403,10 +417,6 @@
403
417
  padding-top: $spacing-05;
404
418
  }
405
419
 
406
- .#{$prefix}--date-table tbody th.#{$prefix}--table-column-checkbox:hover {
407
- background: $data-table-column-hover;
408
- }
409
-
410
420
  //----------------------------------------------------------------------------
411
421
  // Radio
412
422
  //----------------------------------------------------------------------------
@@ -725,6 +735,10 @@
725
735
  width: auto;
726
736
  }
727
737
 
738
+ .#{$prefix}--data-table-container--static {
739
+ width: fit-content;
740
+ }
741
+
728
742
  // -------------
729
743
  // Sticky header
730
744
  // -------------
@@ -26,9 +26,8 @@
26
26
  // Need for batch actions
27
27
  position: relative;
28
28
  display: flex;
29
- overflow: hidden;
30
29
  width: 100%;
31
- height: $spacing-09;
30
+ min-height: $spacing-09;
32
31
  background-color: $layer;
33
32
  }
34
33
 
@@ -375,17 +374,14 @@
375
374
  //-------------------------------------------------
376
375
  .#{$prefix}--batch-actions {
377
376
  position: absolute;
378
- top: 0;
377
+ right: 0;
378
+ bottom: 0;
379
379
  left: 0;
380
380
  display: flex;
381
- width: 100%;
382
- height: 100%;
383
381
  align-items: center;
384
- padding-right: $spacing-06;
385
- padding-left: $spacing-06;
382
+ justify-content: space-between;
386
383
  background-color: $background-brand;
387
384
  clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
388
- overflow-x: auto;
389
385
  pointer-events: none;
390
386
  transform: translate3d(0, 48px, 0);
391
387
  transition: transform $duration-fast-02 motion(standard, productive),
@@ -399,6 +395,7 @@
399
395
  }
400
396
 
401
397
  .#{$prefix}--batch-actions--active {
398
+ overflow: auto hidden;
402
399
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
403
400
  pointer-events: all;
404
401
  transform: translate3d(0, 0, 0);
@@ -406,15 +403,14 @@
406
403
 
407
404
  //btns container
408
405
  .#{$prefix}--action-list {
409
- position: absolute;
410
- right: 0;
411
406
  display: flex;
407
+ align-items: center;
412
408
  }
413
409
 
414
410
  .#{$prefix}--action-list .#{$prefix}--btn {
415
- min-width: 0;
416
411
  padding: $button-padding-ghost;
417
412
  color: $text-on-color;
413
+ white-space: nowrap;
418
414
  }
419
415
 
420
416
  .#{$prefix}--action-list .#{$prefix}--btn:disabled {
@@ -479,22 +475,24 @@
479
475
  transition: opacity $transition-base $standard-easing;
480
476
  }
481
477
 
482
- // cancel btn
483
- .#{$prefix}--batch-summary__cancel {
484
- position: relative;
485
- padding-right: $spacing-05;
486
- }
487
-
488
478
  // items selected text
489
479
  .#{$prefix}--batch-summary {
490
- position: absolute;
480
+ position: sticky;
481
+ z-index: 100000;
491
482
  left: 0;
492
483
  display: flex;
484
+ min-height: 3rem;
493
485
  align-items: center;
494
- margin-left: $spacing-05;
486
+ padding: 0 $spacing-05;
487
+ background-color: $background-brand;
488
+
495
489
  color: $text-on-color;
496
490
  }
497
491
 
492
+ .#{$prefix}--batch-summary__scroll {
493
+ box-shadow: 0.5px 0 0.2px $link-primary-hover;
494
+ }
495
+
498
496
  .#{$prefix}--batch-summary__para {
499
497
  @include type-style('body-compact-01');
500
498
  }
@@ -45,6 +45,7 @@
45
45
  color: $text-primary;
46
46
  font: inherit;
47
47
  line-height: 1;
48
+ text-align: left;
48
49
  transition: background-color $duration-fast-01 motion(entrance, productive),
49
50
  outline $duration-fast-01 motion(entrance, productive);
50
51
  }
@@ -321,7 +321,7 @@
321
321
  border-bottom: 0;
322
322
 
323
323
  &::after {
324
- border-bottom: rem(4px) solid $border-subtle;
324
+ border-bottom: rem(4px) solid $icon-primary;
325
325
  }
326
326
  }
327
327
 
@@ -329,7 +329,7 @@
329
329
  top: rem(11px);
330
330
 
331
331
  &::after {
332
- border-top: rem(4px) solid $border-subtle;
332
+ border-top: rem(4px) solid $icon-primary;
333
333
  }
334
334
  }
335
335