@policystudio/policy-studio-ui-vue 1.2.0-access.67 → 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.
@@ -2880,27 +2880,6 @@ video {
2880
2880
  .psui-el-button.size-small {
2881
2881
  font-size: 14px;
2882
2882
  }
2883
- .psui-el-button.size-small.layout-onlytext:active:not(.disabled), .psui-el-button.size-small.layout-textonly:active:not(.disabled) {
2884
- --tw-bg-opacity: 1;
2885
- background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1));
2886
- }
2887
- .psui-el-button.size-small.layout-onlytext:active:not(.disabled), .psui-el-button.size-small.layout-textonly:active:not(.disabled) {
2888
- --tw-text-opacity: 1;
2889
- color: rgb(18, 121, 153, var(--tw-text-opacity, 1));
2890
- }
2891
- .psui-el-button.size-small.layout-onlytext:active:not(.disabled), .psui-el-button.size-small.layout-textonly:active:not(.disabled) {
2892
- --tw-shadow: inset 0px 1px 2px rgba(0,0,0,0.05);
2893
- --tw-shadow-colored: inset 0px 1px 2px var(--tw-shadow-color);
2894
- box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);
2895
- }
2896
- .psui-el-button.size-small.hover.layout-onlytext, .psui-el-button.size-small.hover.layout-textonly {
2897
- --tw-bg-opacity: 1 !important;
2898
- background-color: rgb(224, 239, 246, var(--tw-bg-opacity, 1)) !important;
2899
- }
2900
- .psui-el-button.size-small.hover.layout-onlytext, .psui-el-button.size-small.hover.layout-textonly {
2901
- --tw-text-opacity: 1 !important;
2902
- color: rgb(18, 121, 153, var(--tw-text-opacity, 1)) !important;
2903
- }
2904
2883
  .psui-el-button.size-small .icon-left-side {
2905
2884
  margin-right: 0.25rem;
2906
2885
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@policystudio/policy-studio-ui-vue",
3
- "version": "1.2.0-access.67",
3
+ "version": "1.2.0-access.69",
4
4
  "description": "Policy Studio UI",
5
5
  "author": "Policy Studio Team",
6
6
  "scripts": {
@@ -51,18 +51,6 @@
51
51
  &.size-small {
52
52
  @apply psui-flex psui-items-center psui-justify-center psui-py-1 psui-px-2 psui-rounded psui-text-[14px];
53
53
 
54
- &.layout-onlytext,
55
- &.layout-textonly {
56
- &:active:not(.disabled) {
57
- @apply psui-bg-blue-20 psui-text-blue-60 psui-shadow-[inset_0px_1px_2px_rgba(0,0,0,0.05)];
58
- }
59
- }
60
-
61
- &.hover.layout-onlytext,
62
- &.hover.layout-textonly {
63
- @apply psui-bg-blue-20 psui-text-blue-60 !important;
64
- }
65
-
66
54
  .icon-left-side {
67
55
  @apply psui-text-[18px] psui-mr-1;
68
56
  }
@@ -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)