@db-ux/core-components 1.0.1 → 1.1.0

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.
@@ -89,16 +89,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
89
89
  transform: translateY(-110%);
90
90
  }
91
91
  }
92
- @keyframes accordion-open {
93
- 0% {
94
- opacity: 0;
95
- transform: translateY(-10%);
96
- }
97
- 100% {
98
- opacity: 1;
99
- transform: translateY(0%);
100
- }
101
- }
102
92
  @keyframes popover-animation {
103
93
  0% {
104
94
  opacity: 0;
@@ -182,10 +172,10 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
182
172
  border-radius: var(--db-border-radius-sm);
183
173
  list-style-type: "";
184
174
  }
185
- @media screen and (prefers-reduced-motion: no-preference) {
186
- .db-accordion-item > details[open] summary + div {
187
- animation: accordion-open var(--db-transition-straight-emotional) normal both;
188
- }
175
+ .db-accordion-item > details[open] summary + div {
176
+ block-size: auto;
177
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */
178
+ block-size: calc-size(auto, size);
189
179
  }
190
180
  .db-accordion-item > details[open] summary::after {
191
181
  transform: rotate(-180deg);
@@ -194,7 +184,19 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
194
184
  pointer-events: none;
195
185
  opacity: 0.4;
196
186
  }
187
+ @media screen and (prefers-reduced-motion: reduce) {
188
+ .db-accordion-item summary + div {
189
+ block-size: 0;
190
+ overflow: hidden;
191
+ transition: none;
192
+ padding: var(--db-spacing-fixed-md);
193
+ padding-block-end: var(--db-spacing-fixed-lg);
194
+ }
195
+ }
197
196
  .db-accordion-item summary + div {
197
+ block-size: 0;
198
+ overflow: hidden;
199
+ transition: block-size var(--db-transition-straight-emotional);
198
200
  padding: var(--db-spacing-fixed-md);
199
201
  padding-block-end: var(--db-spacing-fixed-lg);
200
202
  }
@@ -5,7 +5,6 @@
5
5
  @use "../../styles/internal/form-components";
6
6
  @use "../../styles/internal/component";
7
7
 
8
-
9
8
  .db-accordion-item {
10
9
  position: relative;
11
10
  inline-size: 100%;
@@ -15,11 +14,9 @@
15
14
  > details {
16
15
  &[open] {
17
16
  summary + div {
18
- @media screen and (prefers-reduced-motion: no-preference) {
19
- animation: accordion-open
20
- #{variables.$db-transition-straight-emotional} normal
21
- both;
22
- }
17
+ block-size: auto;
18
+ /* stylelint-disable-next-line declaration-property-value-no-unknown */
19
+ block-size: calc-size(auto, size);
23
20
  }
24
21
 
25
22
  summary::after {
@@ -33,7 +30,20 @@
33
30
  }
34
31
  }
35
32
 
33
+ @media screen and (prefers-reduced-motion: reduce) {
34
+ summary + div {
35
+ block-size: 0;
36
+ overflow: hidden;
37
+ transition: none;
38
+ padding: variables.$db-spacing-fixed-md;
39
+ padding-block-end: variables.$db-spacing-fixed-lg;
40
+ }
41
+ }
42
+
36
43
  summary + div {
44
+ block-size: 0;
45
+ overflow: hidden;
46
+ transition: block-size #{variables.$db-transition-straight-emotional};
37
47
  padding: variables.$db-spacing-fixed-md;
38
48
  padding-block-end: variables.$db-spacing-fixed-lg;
39
49
  }
@@ -70,16 +70,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
70
70
  transform: translateY(-110%);
71
71
  }
72
72
  }
73
- @keyframes accordion-open {
74
- 0% {
75
- opacity: 0;
76
- transform: translateY(-10%);
77
- }
78
- 100% {
79
- opacity: 1;
80
- transform: translateY(0%);
81
- }
82
- }
83
73
  @keyframes popover-animation {
84
74
  0% {
85
75
  opacity: 0;
@@ -99,16 +99,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
99
99
  transform: translateY(-110%);
100
100
  }
101
101
  }
102
- @keyframes accordion-open {
103
- 0% {
104
- opacity: 0;
105
- transform: translateY(-10%);
106
- }
107
- 100% {
108
- opacity: 1;
109
- transform: translateY(0%);
110
- }
111
- }
112
102
  @keyframes popover-animation {
113
103
  0% {
114
104
  opacity: 0;
@@ -87,16 +87,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
87
87
  transform: translateY(-110%);
88
88
  }
89
89
  }
90
- @keyframes accordion-open {
91
- 0% {
92
- opacity: 0;
93
- transform: translateY(-10%);
94
- }
95
- 100% {
96
- opacity: 1;
97
- transform: translateY(0%);
98
- }
99
- }
100
90
  @keyframes popover-animation {
101
91
  0% {
102
92
  opacity: 0;
@@ -865,16 +865,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
865
865
  transform: translateY(-110%);
866
866
  }
867
867
  }
868
- @keyframes accordion-open {
869
- 0% {
870
- opacity: 0;
871
- transform: translateY(-10%);
872
- }
873
- 100% {
874
- opacity: 1;
875
- transform: translateY(0%);
876
- }
877
- }
878
868
  @keyframes popover-animation {
879
869
  0% {
880
870
  opacity: 0;
@@ -70,16 +70,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
70
70
  transform: translateY(-110%);
71
71
  }
72
72
  }
73
- @keyframes accordion-open {
74
- 0% {
75
- opacity: 0;
76
- transform: translateY(-10%);
77
- }
78
- 100% {
79
- opacity: 1;
80
- transform: translateY(0%);
81
- }
82
- }
83
73
  @keyframes popover-animation {
84
74
  0% {
85
75
  opacity: 0;
@@ -93,16 +93,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
93
93
  transform: translateY(-110%);
94
94
  }
95
95
  }
96
- @keyframes accordion-open {
97
- 0% {
98
- opacity: 0;
99
- transform: translateY(-10%);
100
- }
101
- 100% {
102
- opacity: 1;
103
- transform: translateY(0%);
104
- }
105
- }
106
96
  @keyframes popover-animation {
107
97
  0% {
108
98
  opacity: 0;
@@ -73,16 +73,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
73
73
  transform: translateY(-110%);
74
74
  }
75
75
  }
76
- @keyframes accordion-open {
77
- 0% {
78
- opacity: 0;
79
- transform: translateY(-10%);
80
- }
81
- 100% {
82
- opacity: 1;
83
- transform: translateY(0%);
84
- }
85
- }
86
76
  @keyframes popover-animation {
87
77
  0% {
88
78
  opacity: 0;
@@ -160,16 +160,6 @@ textarea:is(input, textarea):not(:placeholder-shown),
160
160
  transform: translateY(-110%);
161
161
  }
162
162
  }
163
- @keyframes accordion-open {
164
- 0% {
165
- opacity: 0;
166
- transform: translateY(-10%);
167
- }
168
- 100% {
169
- opacity: 1;
170
- transform: translateY(0%);
171
- }
172
- }
173
163
  @keyframes popover-animation {
174
164
  0% {
175
165
  opacity: 0;
@@ -86,16 +86,6 @@ paddings/gaps in an application e.g. the <main> should have a responsive padding
86
86
  transform: translateY(-110%);
87
87
  }
88
88
  }
89
- @keyframes accordion-open {
90
- 0% {
91
- opacity: 0;
92
- transform: translateY(-10%);
93
- }
94
- 100% {
95
- opacity: 1;
96
- transform: translateY(0%);
97
- }
98
- }
99
89
  @keyframes popover-animation {
100
90
  0% {
101
91
  opacity: 0;