@mirweb/mir-web-components 2.3.5 → 2.3.7

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.
@@ -1,5 +1,6 @@
1
1
  <template>
2
2
  <section class="accordions">
3
+ <h2 class="accordions__headline" v-if="headline">{{ headline }}</h2>
3
4
  <div class="accordions__wrapper">
4
5
  <div v-for="accordion in accordions" :key="accordion._uid">
5
6
  <div class="accordion">
@@ -55,6 +56,7 @@ import AtomImage from "../../atoms/image/image.vue";
55
56
  import { ref } from "vue";
56
57
 
57
58
  export type Props = {
59
+ headline?: string;
58
60
  accordions: Array<{
59
61
  headline: string;
60
62
  _uid: string;
@@ -106,6 +108,14 @@ const isAccordionActive = (id: string) => {
106
108
  }
107
109
  }
108
110
 
111
+ &__headline {
112
+ margin: 60px 30px -30px 30px;
113
+
114
+ @include md {
115
+ margin: 60px 0 -30px 0;
116
+ }
117
+ }
118
+
109
119
  .accordion {
110
120
  border-bottom: 1px solid $grey-400;
111
121
  transition: $transition-background-color;
@@ -139,10 +149,15 @@ const isAccordionActive = (id: string) => {
139
149
  display: flex;
140
150
  flex-direction: column;
141
151
  gap: 30px;
152
+ max-width: 100%;
142
153
 
143
154
  &--reverse {
144
155
  flex-direction: column-reverse;
145
156
  }
157
+
158
+ :deep(img) {
159
+ width: 100%;
160
+ }
146
161
  }
147
162
  &__image {
148
163
  max-width: 100%;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirweb/mir-web-components",
3
3
  "private": false,
4
- "version": "2.3.5",
4
+ "version": "2.3.7",
5
5
  "type": "module",
6
6
  "files": [
7
7
  "dist"