Compare commits

...

3 Commits

Author SHA1 Message Date
Raphael Michel
d5b483a9c6 Bump to 4.18.1 2023-03-29 09:13:29 +02:00
Raphael Michel
815ddb7271 Widget: improve accessibility with aria-label and role=button (#3179)
Including fixes for previous commit
2023-03-29 09:13:08 +02:00
Raphael Michel
b6a5549a4c Revert "Widget: improve accessibility with aria-label and role=button (#3179)"
This reverts commit 2b479f59d5.
2023-03-29 09:13:02 +02:00
3 changed files with 4 additions and 2 deletions

View File

@@ -19,4 +19,4 @@
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
#
__version__ = "4.18.0"
__version__ = "4.18.1"

View File

@@ -499,6 +499,9 @@ Vue.component('item', {
mounted: function () {
if (this.$refs.variations) {
this.$refs.variations.hidden = !this.expanded;
if (!this.expanded) {
this.$refs.variations.style.maxHeight = '0px';
}
this.$refs.variations.addEventListener('transitionend', function (event) {
if (this.style.maxHeight && this.style.maxHeight != '0px') {
this.style.maxHeight = 'none';

View File

@@ -373,7 +373,6 @@
.pretix-widget-item-variations {
overflow: hidden;
max-height: 0;
padding-top: 0;
padding-bottom: 0;
margin-top: 0;