diff --git a/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue b/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue
index a115ccb2..040620a4 100644
--- a/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue
+++ b/src/BIMDataComponents/BIMDataRadio/BIMDataRadio.vue
@@ -10,10 +10,14 @@
:disabled="disabled"
@click="onClick"
>
-
-
-
- {{ text }}
+
+
+ {{ text }}
+
diff --git a/src/BIMDataComponents/BIMDataRadio/_BIMDataRadio.scss b/src/BIMDataComponents/BIMDataRadio/_BIMDataRadio.scss
index 658f67b9..231c5087 100644
--- a/src/BIMDataComponents/BIMDataRadio/_BIMDataRadio.scss
+++ b/src/BIMDataComponents/BIMDataRadio/_BIMDataRadio.scss
@@ -14,10 +14,33 @@
align-items: center;
cursor: pointer;
+ &__btn {
+ position: relative;
+ width: 23px;
+ height: 23px;
+ }
+
&__text {
font-size: calculateEm(12px);
}
+ &__background {
+ cursor: inherit;
+ position: absolute;
+ top: 0;
+ left: 0;
+ margin: 0;
+ width: 23px;
+ height: 23px;
+ border: none;
+ border-radius: 50%;
+ outline: none;
+ opacity: 0;
+ transform: scale(1);
+ background-color: var(--color-granite);
+ transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
+ }
+
&__circle,
&__dot {
content: '';
@@ -45,7 +68,25 @@
transform: translate(5px, 5px) scale(0);
}
+ &--checked {
+ .bimdata-radio__background {
+ background-color: var(--color-primary);
+ }
+ .bimdata-radio__circle {
+ border-color: var(--color-primary);
+ }
+ .bimdata-radio__dot {
+ background-color: var(--color-primary);
+ transform: translate(5px, 5px) scale(1);
+ }
+ }
+
&--big {
+ .bimdata-radio__btn,
+ .bimdata-radio__background {
+ width: 30px;
+ height: 30px;
+ }
.bimdata-radio__circle {
width: 24px;
height: 24px;
@@ -58,38 +99,6 @@
top: 1px;
left: 1px;
}
- .bimdata-radio__background {
- width: 30px;
- height: 30px;
- }
- }
-
- // custom INPUT : radio button background
- &__background {
- cursor: inherit;
- margin: 0;
- width: 23px;
- height: 23px;
- border: none;
- border-radius: 50%;
- outline: none;
- opacity: 0;
- transform: scale(1);
- background-color: var(--color-granite);
- transition: all 0.2s cubic-bezier(0, 0, 0.2, 1);
- }
-
- &--checked {
- .bimdata-radio__background {
- background-color: var(--color-primary);
- }
- .bimdata-radio__circle {
- border-color: var(--color-primary);
- }
- .bimdata-radio__dot {
- background-color: var(--color-primary);
- transform: translate(5px, 5px) scale(1);
- }
}
&:hover:not(.disabled) {
diff --git a/src/web/views/Components/Radio/Radio.vue b/src/web/views/Components/Radio/Radio.vue
index 0479ee37..808f4b9b 100644
--- a/src/web/views/Components/Radio/Radio.vue
+++ b/src/web/views/Components/Radio/Radio.vue
@@ -15,22 +15,22 @@
:text="text"
value="v0"
v-model="selectedValue"
- :disabled="checkboxDisabledChecked"
- :big="checkboxBigChecked"
+ :disabled="isDisabled"
+ :big="isBig"
/>
{{ `Selected Value: ${selectedValue}` }}
@@ -38,8 +38,8 @@
-
-
+
+
@@ -90,11 +90,18 @@
- Events:
+
+ Events:
+
+
+
+
+ Slots:
+
+
+
@@ -102,6 +109,7 @@