Welcome to mirror list, hosted at ThFree Co, Russian Federation.

label_dropdown_items.vue « label_filter « components « sidebar « search « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7a9e6a2e4fcaf48d29b7d64207645b054b566c52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<script>
import { GlFormCheckbox } from '@gitlab/ui';

export default {
  name: 'LabelDropdownItems',
  components: {
    GlFormCheckbox,
  },
  props: {
    labels: {
      type: Array,
      required: true,
    },
  },
};
</script>
<template>
  <ul class="gl-list-style-none gl-px-0">
    <li
      v-for="label in labels"
      :id="label.key"
      :ref="label.key"
      :key="label.key"
      :aria-label="label.title"
      tabindex="-1"
      class="gl-px-5 gl-py-3 label-filter-menu-item"
    >
      <gl-form-checkbox
        class="label-with-color-checkbox gl-display-inline-flex gl-h-5 gl-min-h-5"
        :value="label.key"
      >
        <span
          data-testid="label-color-indicator"
          class="gl-rounded-base gl-w-5 gl-h-5 gl-display-inline-block gl-vertical-align-bottom gl-mr-3"
          :style="{ 'background-color': label.color }"
        ></span>
        <span class="gl-reset-text-align gl-m-0 gl-p-0 label-title">{{
          label.title
        }}</span></gl-form-checkbox
      >
    </li>
  </ul>
</template>