1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 01:16:52 +02:00

fix: groupmentions have poor contrast on some backgrounds (#3672)

* fix: poor text contrast on some backgrounds
* use hexdec()
* fix render test
* appears to be working now
This commit is contained in:
Ian Morland
2022-11-07 15:49:47 +00:00
committed by GitHub
parent eeb00cc56b
commit c98e6ba5a7
4 changed files with 66 additions and 8 deletions

View File

@@ -84,7 +84,7 @@ class GroupMentionsTest extends TestCase
$response = json_decode($response->getBody(), true);
$this->assertStringContainsString('<p>One of the <span style="background:#80349E" class="GroupMention">@Mods<i class="icon fas fa-bolt"></i></span> will look at this</p>', $response['data']['attributes']['contentHtml']);
$this->assertStringContainsString('<p>One of the <span style="background:#80349E" class="GroupMention ">@Mods<i class="icon fas fa-bolt"></i></span> will look at this</p>', $response['data']['attributes']['contentHtml']);
$this->assertNotNull(CommentPost::find($response['data']['id'])->mentionsGroups->find(4));
}