@gitlab/ui 64.23.0 → 64.24.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/ui",
3
- "version": "64.23.0",
3
+ "version": "64.24.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -5,3 +5,26 @@
5
5
  @include gl-focus;
6
6
  }
7
7
  }
8
+
9
+ // Make size of focus border on indicator and prev/next button equal to themselves
10
+ .carousel-indicators li {
11
+ @include gl-border-top-0;
12
+ @include gl-border-bottom-0;
13
+ margin-bottom: 10px;
14
+ }
15
+
16
+ .carousel-control-prev {
17
+ margin-left: 7%;
18
+ }
19
+
20
+ .carousel-control-next {
21
+ margin-right: 7%;
22
+ }
23
+
24
+ .carousel-control-prev,
25
+ .carousel-control-next {
26
+ width: auto;
27
+ top: 50%;
28
+ bottom: auto;
29
+ transform: translateY(-50%);
30
+ }
@@ -216,6 +216,18 @@ export default {
216
216
  },
217
217
  };
218
218
  },
219
+ toggleListeners() {
220
+ return this.toggleOptions.listeners;
221
+ },
222
+
223
+ toggleAttributes() {
224
+ const { listeners, is, ...attributes } = this.toggleOptions;
225
+
226
+ return attributes;
227
+ },
228
+ toggleComponent() {
229
+ return this.toggleOptions.is;
230
+ },
219
231
  toggleElement() {
220
232
  return this.$refs.toggle.$el || this.$refs.toggle?.firstElementChild;
221
233
  },
@@ -400,12 +412,12 @@ export default {
400
412
  <template>
401
413
  <div v-outside="close" class="gl-new-dropdown" :class="{ 'gl-display-block!': block }">
402
414
  <component
403
- :is="toggleOptions.is"
404
- v-bind="toggleOptions"
415
+ :is="toggleComponent"
416
+ v-bind="toggleAttributes"
405
417
  :id="toggleId"
406
418
  ref="toggle"
407
419
  data-testid="base-dropdown-toggle"
408
- v-on="toggleOptions.listeners"
420
+ v-on="toggleListeners"
409
421
  >
410
422
  <!-- @slot Custom toggle button content -->
411
423
  <slot name="toggle">
@@ -51,13 +51,12 @@
51
51
  .gl-tab-nav-item-active {
52
52
  @include gl-font-weight-bold;
53
53
  @include gl-text-gray-900;
54
- @include gl-inset-border-b-2-theme-accent;
54
+ @include gl-inset-border-b-2-blue-500;
55
55
 
56
56
  &:active,
57
57
  &:focus,
58
58
  &:focus:active {
59
- box-shadow: inset 0 -#{$gl-border-size-2} 0 0 var(--gl-theme-accent, $theme-indigo-500),
60
- $focus-ring;
59
+ box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $blue-500, $focus-ring;
61
60
  @include gl-outline-none;
62
61
  }
63
62
  }
@@ -2048,6 +2048,14 @@
2048
2048
  box-shadow: inset 0 0 0 $gl-border-size-1 $blue-600 !important
2049
2049
  }
2050
2050
 
2051
+ .gl-inset-border-b-2-blue-500 {
2052
+ box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $blue-500
2053
+ }
2054
+
2055
+ .gl-inset-border-b-2-blue-500\! {
2056
+ box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $blue-500 !important
2057
+ }
2058
+
2051
2059
  .gl-inset-border-1-green-500 {
2052
2060
  box-shadow: inset 0 0 0 $gl-border-size-1 $green-500
2053
2061
  }
@@ -85,6 +85,10 @@
85
85
  box-shadow: inset 0 0 0 $gl-border-size-1 $blue-600;
86
86
  }
87
87
 
88
+ @mixin gl-inset-border-b-2-blue-500 {
89
+ box-shadow: inset 0 -#{$gl-border-size-2} 0 0 $blue-500;
90
+ }
91
+
88
92
  @mixin gl-inset-border-1-green-500 {
89
93
  box-shadow: inset 0 0 0 $gl-border-size-1 $green-500;
90
94
  }