Skip to content

Conversation

@JohnHKoh
Copy link

Show word definition on row hover for locked in words and for the final target word at the end of the game.

No hover:
image

On hover:
image

Clicking on the magnifying glass opens https://www.collinsdictionary.com/dictionary/english/{word}. The positioning of the magnifying glass is set dynamically by using a ref for the last letter of every row and using its offsetLeft and offsetWidth to position the icon absolutely from there.

For the game ending, hovering over the target word underlines the word and allows you to open the dictionary link that way.

image

Tested on Chrome and iOS Safari.

Addresses feature request #19 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant