Make copy link selectable
This commit is contained in:
@@ -228,7 +228,12 @@ function Game(props: GameProps) {
|
|||||||
<table className="Game-rows" tabIndex={0} aria-label="Table of guesses">
|
<table className="Game-rows" tabIndex={0} aria-label="Table of guesses">
|
||||||
<tbody>{tableRows}</tbody>
|
<tbody>{tableRows}</tbody>
|
||||||
</table>
|
</table>
|
||||||
<p role="alert">{hint || `\u00a0`}</p>
|
<p
|
||||||
|
role="alert"
|
||||||
|
style={{ userSelect: /http:/.test(hint) ? "text" : "none" }}
|
||||||
|
>
|
||||||
|
{hint || `\u00a0`}
|
||||||
|
</p>
|
||||||
<Keyboard letterInfo={letterInfo} onKey={onKey} />
|
<Keyboard letterInfo={letterInfo} onKey={onKey} />
|
||||||
{gameState !== GameState.Playing && !challenge && (
|
{gameState !== GameState.Playing && !challenge && (
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
Reference in New Issue
Block a user