Closed (fixed)
Project:
Olivero
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2020 at 16:46 UTC
Updated:
28 Apr 2020 at 13:04 UTC
Jump to comment: Most recent, Most recent file
The informational variant of the messages has low contrast. It has the CSS class of .messages.messages--info

| Comment | File | Size | Author |
|---|---|---|---|
| #6 | interdiff_4-6.txt | 5.08 KB | kostyashupenko |
| #6 | 3126706-6.patch | 17.64 KB | kostyashupenko |
| #5 | 3126706-4.patch | 15.28 KB | mherchel |
| #4 | 3126706-4.patch | 0 bytes | mherchel |
| #4 | 3126706-4-interdiff.patch | 4.2 KB | mherchel |
Comments
Comment #2
kostyashupenko1. low contrast comes from webform module (link). It is contrib module and we shouldn't override its styles in Olivero.
2. added "info" type icon (question icon, blue color)
3. fixed styles: alignment of icons and text
4. reworked js: querySelectorAll().forEach() is not working in IE properly, so i replaced it by
Array.prototype.forEach.call(). Also removed some aria attributes.Comment #3
kostyashupenkoUse this patch
Comment #4
mherchelThis is looking good!
I figured out the issue why the nodelist.forEach polyfill wasn't working is because I modified it when fixing linting errors. This patch fixes that.
I also removed an unused rss.svg file, and added a rule to set background-image none on the messages (to override webform and any other modules).
Updated patch and interdiff attached!
Comment #5
mherchelDidn't generate the full patch properly. Correct patch attached.
Comment #6
kostyashupenkoHonestly i disagree totally to have such overrides. It is issue of contrib modules, so should be fixed there. We shouldn't care about all possible and impossible cases in drupal, which are not related to the core, isn't it ? )
Btw i have tested your patch in IE11 @mherchel and all is fine now there with forEach
Comment #7
mherchelI can definitely see that point.
On the other hand, webform is pretty popular, and it's not a big deal to implement this. I read somewhere that Microsoft tested Windows 95 on a variety of popular Windows 3.1 applications and games, and modified the OS to suit these popular games, so that from the end user's perspective, things "just worked".
I don't mind doing things like this if the 1) module is popular, and 2) if the fix is easy and documented in code comments.
Comment #8
mherchelCommitted! Once again, thanks for the hard work @kostyashupenko!