From a567cee2898f11bef977618716c3de6c1c64f23e Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Wed, 27 May 2020 18:41:34 +1000 Subject: [PATCH] Disabled pointer events for dice tray results text --- src/components/map/dice/DiceControls.js | 1 + src/components/map/dice/DiceResults.js | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/map/dice/DiceControls.js b/src/components/map/dice/DiceControls.js index 4902f65..9baabc9 100644 --- a/src/components/map/dice/DiceControls.js +++ b/src/components/map/dice/DiceControls.js @@ -90,6 +90,7 @@ function DiceControls({ right: 0, display: "flex", color: "white", + pointerEvents: "none", }} > @@ -56,7 +57,7 @@ function DiceResults({ diceRolls, onDiceClear, onDiceReroll }) { {diceRolls.reduce((accumulator, dice) => accumulator + dice.roll, 0)} @@ -67,7 +68,7 @@ function DiceResults({ diceRolls, onDiceClear, onDiceReroll }) { title={"Show Dice Details"} onClick={() => setIsExpanded(!isExpanded)} variant="secondary" - sx={{ display: "flex", height: "24px" }} + sx={{ display: "flex", height: "24px", pointerEvents: "all" }} > {isExpanded ? rolls : rolls.slice(0, maxDiceRollsShown)} {!isExpanded && ( @@ -85,6 +86,7 @@ function DiceResults({ diceRolls, onDiceClear, onDiceReroll }) { title="Reroll Dice" aria-label="Reroll Dice" onClick={onDiceReroll} + sx={{ pointerEvents: "all" }} >