gingko / client

Gingko Writer. Tree-based writing software, written in Elm.
https://gingkowriter.com
MIT License
361 stars 49 forks source link

[UX] Disable inner content clicks of card until active-focused. #227

Open Glidias opened 3 years ago

Glidias commented 3 years ago

I find it quite annoying that inner content clicks of non-active cards easily trigger clicks across the board. This isn't ideal for cards containing content with numerous hyperlinks and clickable elements like embed videos as it'll result in many accidental click triggers. Suggest: click to focus on 1 active card first, before able to click on inner hyperlinks/embed videos).

One possible way to do this.

.card > .view {
  pointer-events:none;
}
.card.active > .view {
  pointer-events:auto;
}