mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:30:43 +00:00
add colored borders to player's quickchat option buttons (#2821)
Resolves #2820 ## Description: Add colored borders to the `chat-option-button` corresponding to each players territory color. <img width="630" height="565" alt="Image" src="https://github.com/user-attachments/assets/91a99230-0581-4d83-a470-9a02ba43c045" /> ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## Please put your Discord username so you can be contacted if a bug or regression is found: denelduck --------- Co-authored-by: VariableVince <24507472+VariableVince@users.noreply.github.com>
This commit is contained in:
@@ -142,6 +142,9 @@ export class ChatModal extends LitElement {
|
||||
player
|
||||
? "selected"
|
||||
: ""}"
|
||||
style="border: 2px solid ${player
|
||||
.territoryColor()
|
||||
.toHex()};"
|
||||
@click=${() => this.selectPlayer(player)}
|
||||
>
|
||||
${player.name()}
|
||||
|
||||
Reference in New Issue
Block a user