The informational variant of the messages has low contrast. It has the CSS class of .messages.messages--info

Comments

mherchel created an issue. See original summary.

kostyashupenko’s picture

Status: Active » Needs review
StatusFileSize
new12.68 KB
new111.39 KB

Messages

1. 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.

kostyashupenko’s picture

StatusFileSize
new12.58 KB

Use this patch

mherchel’s picture

StatusFileSize
new4.2 KB
new0 bytes

This 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!

mherchel’s picture

StatusFileSize
new15.28 KB

Didn't generate the full patch properly. Correct patch attached.

kostyashupenko’s picture

StatusFileSize
new17.64 KB
new5.08 KB
+  /* Additional specificity to override contrib modules. */
+  &.messages-list__item {
+    background-image: none;
+  }

Honestly 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

mherchel’s picture

Status: Needs review » Reviewed & tested by the community

Honestly 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 ? )

I 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.

mherchel’s picture

Status: Reviewed & tested by the community » Fixed

Committed! Once again, thanks for the hard work @kostyashupenko!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.