Skip to content
Snippets Groups Projects
Commit 8ea4ca2d authored by Ron Lucke's avatar Ron Lucke
Browse files

fix #3192

Closes #3192

Merge request studip/studip!2478
parent 7293abba
No related branches found
No related tags found
No related merge requests found
...@@ -28,12 +28,8 @@ ...@@ -28,12 +28,8 @@
} }
} }
.cw-collapsible-content { .cw-collapsible-content .cw-collapsible-content-open {
display: none; padding: 10px;
&.cw-collapsible-content-open {
display: block;
padding: 10px;
}
} }
} }
......
...@@ -101,14 +101,7 @@ ...@@ -101,14 +101,7 @@
} }
.cw-tabs { .cw-tabs {
.cw-tab { .cw-tab .cw-tab-active {
display: none; padding: 4px 8px;
height: 0;
&.cw-tab-active {
display: block;
height: unset;
padding: 4px 8px;
}
} }
} }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<studip-icon v-if="icon" :shape="icon" /> {{ title }} <studip-icon v-if="icon" :shape="icon" /> {{ title }}
</header> </header>
</a> </a>
<div class="cw-collapsible-content" :class="{ 'cw-collapsible-content-open': isOpen }"> <div v-if="isOpen" class="cw-collapsible-content" :class="{ 'cw-collapsible-content-open': isOpen }">
<slot></slot> <slot></slot>
</div> </div>
</div> </div>
...@@ -54,4 +54,4 @@ export default { ...@@ -54,4 +54,4 @@ export default {
} }
} }
}; };
</script> </script>
\ No newline at end of file
<template> <template>
<div <div
v-if="isActive"
role="tabpanel" role="tabpanel"
class="cw-tab" class="cw-tab"
:id="id" :id="id"
:class="{ 'cw-tab-active': isActive }"
:aria-labelledby="selectorId" :aria-labelledby="selectorId"
> >
<slot></slot> <slot></slot>
...@@ -48,4 +48,4 @@ export default { ...@@ -48,4 +48,4 @@ export default {
} }
} }
}; };
</script> </script>
\ No newline at end of file
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