lila icon indicating copy to clipboard operation
lila copied to clipboard

Add CSS class for the selected pocket piece

Open VVestin opened this issue 1 year ago • 4 comments

fixes #12866 This change depends on this PR to lichess-org/chessground: https://github.com/lichess-org/chessground/pull/292

This is the styling I propose for the selected piece: image

I'm definitely open to other ideas on how we should style the selected piece. I copied that color from the selected piece background in chessground. A similar style we use on the pocket is what we do for the pre-dropped piece where we highlight the background a shade of gray.

VVestin avatar Nov 20 '23 02:11 VVestin

Hey, thanks for the work, is this PR a draft due to work on your side pending, or because you're waiting for feedback?

kraktus avatar Nov 28 '23 14:11 kraktus

Hey, thanks for the work, is this PR a draft due to work on your side pending, or because you're waiting for feedback?

No, this is the only change I intend to make. It's a draft until the chessground PR gets merged: https://github.com/lichess-org/chessground/pull/292. (Also, I just realized the link I made in the original comment was broken! Fixed it now)

Is this the right way to handle linked changes? This was the advice I got on the lichess discord.

VVestin avatar Nov 29 '23 04:11 VVestin

@VVestin yes it is! Is this ready to merge?

TheForkPower avatar Jan 14 '24 07:01 TheForkPower

@VVestin yes it is! Is this ready to merge?

No, still waiting on the chessground PR to be merged: https://github.com/lichess-org/chessground/pull/292

Maybe I should reach out to @niklasf or @ornicar to take a look?

VVestin avatar Jan 16 '24 18:01 VVestin