@policystudio/policy-studio-ui-vue 1.2.0-access.68 → 1.2.0-access.69

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": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.68",
3
+ "version": "1.2.0-access.69",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -3,6 +3,7 @@
3
3
  class="psui-general-icon"
4
4
  :style="{ display: display }"
5
5
  tabindex="0"
6
+ v-bind="$attrs"
6
7
  @click="emit('click', $event)"
7
8
  @keydown="emit('keydown',$event)"
8
9
  >
@@ -11,9 +12,16 @@
11
12
  class="material-icons-round"
12
13
  :class="[getIconClasses]"
13
14
  :style="{ fontSize: `${size}px` }"
15
+ :aria-hidden="label ? 'true' : null"
14
16
  >
15
17
  {{ getIcon }}
16
18
  </span>
19
+ <span
20
+ v-if="label"
21
+ class="sr-only"
22
+ >
23
+ {{ label }}
24
+ </span>
17
25
  <img
18
26
  v-else-if="getIconType === 'url'"
19
27
  :src="icon"
@@ -120,6 +128,10 @@ const props = defineProps({
120
128
  type: [Number, String],
121
129
  default: null,
122
130
  },
131
+ label: {
132
+ type: String,
133
+ default: null,
134
+ },
123
135
  })
124
136
 
125
137
  const finishedImageLoad = ref(false)