- ๐ฎ๐ชIreland markconroy
This looks really good. Just a few things to consider before we give it a final test/merge.
- In Drupal 10, we don't need to have the es6 code transpiled for ie11 any more, so that can be removed.
- Can we try remove the weight from the CSS file in the library definition. I don't think that should be needed.
- ๐ฎ๐ณIndia ankithashetty Karnataka, India
- ๐บ๐ธUnited States smustgrave
Thank you for working on this @ankithashetty
Will still need screenshots for this though.
- ๐ฎ๐ชIreland markconroy
Hi @ankithashetty
Thanks for this work; it's looking really good.
For #14.2, that was my mistake. I thought we were introducing a 'weight' to the CSS file, but looks like we were removing it.
However, we now have a 'messages' library with no messages.css file in it. It seems to have been moved to the general umami global library. Can we add that CSS file back to the messages library instead please, so we keep the CSS and the JS for this component in the same library?
Also, as @smustgrave says, we'll need to get some before/after screenshots to verify this. Then we can move it to RTBC.
- Status changed to Needs review
over 1 year ago 8:36am 1 February 2023 - ๐ญ๐บHungary Zsuffa Dรกvid
I made a slight modification of patch #16.
Message.css was added back to the library, adding anid
to theh2
for thearia-labelledby
attribute.
I also added a wrapperspan
around the message text to match the twig markup.
Before/after screenshots are attached. - ๐บ๐ธUnited States smustgrave
Thanks just FYI for next time went screenshots are tagged they need to be added to the issue summary.
For the ID is there a possibility there could be 2 of the same on the page? That could introduce an accessibility issue.
- ๐ญ๐บHungary Zsuffa Dรกvid
I based this modification on claros's messages.js, but you are right, if two
id
s are the same it can cause accessibility issues.
So we can remove thearia-labelledby
attribute since the h2 isvisually-hidden
but it contains the text needed for screen readers.
Added new patch. - Status changed to RTBC
over 1 year ago 5:51pm 1 February 2023 - ๐บ๐ธUnited States smustgrave
Thanks! Change looks good and since this is a demo profile doubt it will need any kind of change record
Good job!
- Status changed to Needs work
over 1 year ago 9:12pm 2 February 2023 - ๐ซ๐ฎFinland lauriii Finland
+++ b/core/profiles/demo_umami/themes/umami/umami.info.yml @@ -7,7 +7,6 @@ libraries: - - umami/messages
If we remove the
umami/messages
library from the global libraries, it isn't guaranteed anymore that the message styles are loaded when messages are rendered. We probably should add themessages.css
styles to the global library since it should be always loaded. - Status changed to Needs review
over 1 year ago 5:35am 3 February 2023 - ๐ฎ๐ณIndia Gauravvv Delhi, India
Added
messages.css
toglobal library
.I have added patch and interdiff for same. Please review
- Status changed to Needs work
over 1 year ago 3:16pm 3 February 2023 - ๐บ๐ธUnited States smustgrave
If we add to global don't think we need
+ core/drupal.message:
Anymore right?