Skip to content
Snippets Groups Projects
Commit 2c2542f0 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3492

Closes #3492

Merge request studip/studip!2387
parent 7a4b6b21
No related branches found
No related tags found
No related merge requests found
......@@ -6,10 +6,18 @@
:src="url"
:width="size"
:height="size"
:role="ariaRole"
v-bind="$attrs"
v-on="$listeners"
/>
<img v-else :src="url" :width="size" :height="size" v-bind="$attrs" v-on="$listeners" />
<img v-else
:src="url"
:width="size"
:height="size"
:role="ariaRole"
v-bind="$attrs"
v-on="$listeners"
/>
</template>
<script lang="ts">
......@@ -18,21 +26,25 @@ import Vue from 'vue';
export default Vue.extend({
name: 'studip-icon',
props: {
shape: String,
ariaRole: {
type: String,
required: false,
},
name: {
type: String,
required: false,
},
role: {
type: String,
required: false,
default: 'clickable',
},
shape: String,
size: {
type: Number,
required: false,
default: 16,
},
name: {
type: String,
required: false,
},
},
computed: {
url(): string {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment