@gitlab/ui 85.12.0 → 85.12.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": "85.12.0",
3
+ "version": "85.12.1",
4
4
  "description": "GitLab UI Components",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",
@@ -1,5 +1,5 @@
1
1
  $badge-padding-horizontal: 0.75 * $grid-size;
2
- $badge-min-width: 2.5 * $grid-size;
2
+ $badge-min-width: $gl-spacing-scale-3;
3
3
 
4
4
  @mixin gl-badge-variant(
5
5
  $variant,
@@ -74,7 +74,6 @@ $badge-min-width: 2.5 * $grid-size;
74
74
  @include gl-line-height-normal;
75
75
  gap: $gl-spacing-scale-2;
76
76
  padding: $gl-spacing-scale-1 $badge-padding-horizontal;
77
- min-width: $badge-min-width;
78
77
 
79
78
  @media (forced-colors: active) {
80
79
  border: 1px solid;
@@ -86,6 +85,10 @@ $badge-min-width: 2.5 * $grid-size;
86
85
  @include gl-flex-shrink-0;
87
86
  top: auto;
88
87
  }
88
+
89
+ .gl-badge-content {
90
+ min-width: $badge-min-width;
91
+ }
89
92
  }
90
93
 
91
94
  /* Variants */
@@ -83,7 +83,10 @@ export default {
83
83
  :class="{ '-gl-ml-2 gl-ml-n2': isCircularIcon }"
84
84
  :name="icon"
85
85
  />
86
- <!-- @slot The badge content to display. -->
87
- <slot></slot>
86
+ <!-- eslint-disable-next-line @gitlab/vue-prefer-dollar-scopedslots -->
87
+ <span v-if="$slots.default" class="gl-badge-content">
88
+ <!-- @slot The badge content to display. -->
89
+ <slot></slot>
90
+ </span>
88
91
  </b-badge>
89
92
  </template>