@gitlab/ui 71.6.1 → 71.7.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.
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ * Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
  */
5
5
 
6
6
  :root {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ * Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
  */
5
5
 
6
6
  :root.gl-dark {
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ * Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#133a03";
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Do not edit directly
3
- * Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ * Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
  */
5
5
 
6
6
  export const DATA_VIZ_GREEN_50 = "#ddfab7";
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ // Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
 
5
5
  $red-950: #fff4f3;
6
6
  $red-900: #fcf1ef;
@@ -1,6 +1,6 @@
1
1
 
2
2
  // Do not edit directly
3
- // Generated on Wed, 06 Dec 2023 18:05:17 GMT
3
+ // Generated on Thu, 07 Dec 2023 15:01:35 GMT
4
4
 
5
5
  $gl-line-height-52: 3.25rem;
6
6
  $gl-line-height-44: 2.75rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "71.6.1",
3
+ "version": "71.7.0",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -25,5 +25,6 @@
25
25
 
26
26
  &-sublabel {
27
27
  @include gl-text-gray-500;
28
+ overflow-wrap: anywhere;
28
29
  }
29
30
  }
@@ -231,9 +231,9 @@ describe('base dropdown', () => {
231
231
  props | toggleClasses
232
232
  ${{}} | ${[]}
233
233
  ${{ toggleText: 'toggleText' }} | ${[]}
234
- ${{ icon: 'close' }} | ${['gl-new-dropdown-icon-only']}
235
- ${{ icon: 'close', toggleText: 'toggleText', textSrOnly: true }} | ${['gl-new-dropdown-icon-only']}
236
- ${{ icon: 'close', textSrOnly: true }} | ${['gl-new-dropdown-icon-only']}
234
+ ${{ icon: 'close' }} | ${['gl-new-dropdown-icon-only', 'btn-icon']}
235
+ ${{ icon: 'close', toggleText: 'toggleText', textSrOnly: true }} | ${['gl-new-dropdown-icon-only', 'btn-icon']}
236
+ ${{ icon: 'close', textSrOnly: true }} | ${['gl-new-dropdown-icon-only', 'btn-icon']}
237
237
  ${{ toggleText: 'toggleText', noCaret: true }} | ${['gl-new-dropdown-toggle-no-caret']}
238
238
  `('dropdown with props $props', ({ props, toggleClasses }) => {
239
239
  beforeEach(async () => {
@@ -176,7 +176,7 @@ export default {
176
176
  this.toggleClass,
177
177
  {
178
178
  'gl-new-dropdown-toggle': true,
179
- 'gl-new-dropdown-icon-only': this.isIconOnly,
179
+ 'gl-new-dropdown-icon-only btn-icon': this.isIconOnly,
180
180
  'gl-new-dropdown-toggle-no-caret': this.noCaret,
181
181
  },
182
182
  ];
@@ -48,7 +48,8 @@
48
48
  }
49
49
 
50
50
  .gl-new-dropdown-toggle {
51
- &.gl-button {
51
+ // optically align the caret
52
+ &.gl-button:not(.gl-new-dropdown-toggle-no-caret) {
52
53
  @include gl-pr-3;
53
54
 
54
55
  &.btn-sm {
@@ -56,17 +57,10 @@
56
57
  }
57
58
  }
58
59
 
59
- &.gl-new-dropdown-toggle-no-caret {
60
- @include gl-p-3;
61
-
62
- .gl-new-dropdown-chevron {
63
- @include gl-display-none;
64
- }
60
+ &.gl-new-dropdown-toggle-no-caret .gl-new-dropdown-chevron {
61
+ @include gl-display-none;
65
62
  }
66
63
 
67
- &.gl-new-dropdown-toggle-no-caret.btn-sm {
68
- @include gl-p-2;
69
- }
70
64
  }
71
65
 
72
66
  .gl-new-dropdown-toggle {
@@ -96,6 +90,15 @@
96
90
  }
97
91
 
98
92
  .gl-new-dropdown-icon-only {
93
+ // optically align the caret
94
+ &.gl-button:not(.gl-new-dropdown-toggle-no-caret) {
95
+ @include gl-pr-2;
96
+
97
+ &.btn-sm {
98
+ @include gl-pr-0;
99
+ }
100
+ }
101
+
99
102
  .gl-button-icon.gl-button-icon {
100
103
  @include gl-mr-0;
101
104
  }
@@ -103,6 +106,7 @@
103
106
  &.btn-sm .gl-new-dropdown-chevron {
104
107
  @include gl-mx-0;
105
108
  }
109
+
106
110
  }
107
111
 
108
112
  $dropdown-content-padding: 0.25rem;