From e4d209526cab5a8291763ebcf4be8ed893516857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Tue, 31 Jan 2023 12:50:12 +0100 Subject: [PATCH] Add different sizes to 'BaseIcon.vue' --- .../_new/generic/BaseIcon/BaseIcon.vue | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/webapp/components/_new/generic/BaseIcon/BaseIcon.vue b/webapp/components/_new/generic/BaseIcon/BaseIcon.vue index a1c34555e..c01cefe1e 100644 --- a/webapp/components/_new/generic/BaseIcon/BaseIcon.vue +++ b/webapp/components/_new/generic/BaseIcon/BaseIcon.vue @@ -1,6 +1,6 @@ @@ -16,6 +16,13 @@ export default { return iconNames.includes(value) }, }, + size: { + type: String, + default: 'regular', + validator(value) { + return value.match(/(small|regular|large)/) + }, + }, }, computed: { svgIcon() { @@ -42,6 +49,20 @@ export default { > .svg { height: 1.2em; fill: currentColor; + + &.--small { + height: 0.8em; + } + + &.--regular { + height: 1.2em; + } + + &.--large { + margin-top: 2.5px; + margin-left: 3px; + height: 45.4px; + } } }