From d7d132a9238ec0988750eac6fa498b703d502fb8 Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 2 Jun 2020 02:44:11 +0200 Subject: Add comment for box shadow override --- .../kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt index 2fae1fb8..b2e12dab 100644 --- a/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt +++ b/sw-ui/src/main/kotlin/org/luxons/sevenwonders/ui/components/game/GameStyles.kt @@ -19,6 +19,9 @@ object GameStyles : StyleSheet("GameStyles", isStatic = true) { put("fill", bgColor.toString()) // overrides default white arrow } descendants(".bp3-popover-arrow::before") { + // The popover arrow is implemented with a simple square rotated 45 degrees (like a rhombus). + // Since we use a semi-transparent background, we can see the box shadow of the rest of the arrow through + // the popover, and thus we see the square. This boxShadow(transparent) is to avoid that. boxShadow(Color.transparent) } } -- cgit