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

color_item.vue « color_select_dropdown « components « vue_shared « javascripts « assets « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 70cac061ca6f7592e802f9ddfe73c927c20ab538 (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
<script>
export default {
  props: {
    color: {
      type: String,
      required: true,
    },
    title: {
      type: String,
      required: true,
    },
  },
};
</script>

<template>
  <div class="color-item">
    <span
      class="dropdown-label-box color-item-color"
      data-testid="color-item"
      :style="{ backgroundColor: color }"
    ></span>
    <span class="color-item-text">{{ title }}</span>
  </div>
</template>