Skip to content

Commit 1be6b9b

Browse files
committed
fix specificity of SVG pointer-events rules
1 parent 33d1c01 commit 1be6b9b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
5757
- use the latest provided `onChange` function
5858
- `<TextField />`, `<TextArea />`
5959
- fix emoji false-positives in invisible character detection
60+
- `<Modal />`
61+
- fix specificity for pointer-events rules on SVG
6062
- Focus outlines
6163
- we use again bold focus outlines for input elements
6264
- they are also used for clickable elements that are focused via keyboard (tab navigation)

src/components/Dialog/dialog.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ $eccgui-color-modal-backdrop: eccgui-color-rgba(
4141
max-width: calc(100vw - 4rem);
4242
max-height: calc(100vh - 4rem);
4343
margin: 2rem;
44-
pointer-events: all;
44+
pointer-events: auto;
4545
user-select: text;
4646

4747
& > * {
@@ -50,7 +50,7 @@ $eccgui-color-modal-backdrop: eccgui-color-rgba(
5050
max-width: 100%;
5151
}
5252

53-
* {
53+
*:has(> svg) {
5454
pointer-events: all;
5555
}
5656

0 commit comments

Comments
 (0)