From 3fad362e1da0580c60dc3032893806f9d56b3d43 Mon Sep 17 00:00:00 2001 From: Nick Moreton Date: Fri, 9 Dec 2022 16:15:14 +0000 Subject: [PATCH] Disable pointer events on menu chevron to allow toggling. Fix #202 (#205) Co-authored-by: Thibaud Colas --- CHANGELOG.md | 2 ++ .../static/pattern_library/src/scss/components/_list.scss | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd99e69e..b6ed404a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## [Unreleased] +- Disable pointer events on menu chevron to allow clicks ([#202](https://github.com/torchbox/django-pattern-library/issues/202), [#205](https://github.com/torchbox/django-pattern-library/pull/205)) + ## [1.0.0](https://github.com/torchbox/django-pattern-library/releases/tag/v1.0.0) - 2022-06-10 ### Added diff --git a/pattern_library/static/pattern_library/src/scss/components/_list.scss b/pattern_library/static/pattern_library/src/scss/components/_list.scss index a93f15cc..5819421f 100644 --- a/pattern_library/static/pattern_library/src/scss/components/_list.scss +++ b/pattern_library/static/pattern_library/src/scss/components/_list.scss @@ -43,7 +43,8 @@ &__item-icon { width: 15px; height: 15px; - + pointer-events: none; + .is-open > & { transform: rotate(90deg); }