-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.0] Messages/Alerts: using icons instead of text as heading #30516
Conversation
Not got time to check properly but this looks ok for accessibility at first glance. Needs to be reviewed by the accessibility team though. |
I have tested this item 🔴 unsuccessfully on dce6e70 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30516. |
Yep, we saw that a bit ago. |
icomoon stuff was loaded, creating the issue with the featured columns icon. Maybe this is due to the use of
and the fact that it is necessary if we use We may have use a simpler
etc. |
Before this PR I had the possibility to use custom language strings for custom message types After this PR not. both template.scss are importing already fontawesome. Why twice with this pr? https://github.com/joomla/joomla-cms/blob/4.0-dev/templates/cassiopeia/scss/template.scss#L15-L18 |
My test with
I guess you were always getting an info type message (blue background), with Here we use icons related to core types. Example:
|
This brings up an important issue I have had with the way icons are currently handled. Which me'n hans are working on. Give me 24hrs to sort this out for the best solution. One thing we don't need/want is to load fa set twice. |
@infograf768 for the love of god please don't mix Fontawesome with the alerts. They are and supposed to be universal (eg no dependencies and work well with any front end stack). Just copy paste these few lines of CSS from this comment: joomla-projects/custom-elements#99 (comment) |
@dgrammatiko Note: let's not forget that we have 2 ways to trigger the alerts:
Therefore we do need a common resulting css for both. |
Obvioulsy, it is possible to solve the issue for the layout, using a simple code similar to the one used in brianteeman@8f6c3f9 i.e. adding
and then
But the problem remains for the js as I guess it is not a good idea to hardcode there these classes. |
That is not correct for the reasons stated in that pr when it was closed |
I think I understood Dimitris proposal. On it now. |
The same approach SHOULD be applied also to all the fields. Fields should be coded in such a way that Bootstrap/jQuery or Font Awesome is not a dependency... (eg icons should be a css baground-image property if you want the CMS to remain relative in terms of performance) |
@dgrammatiko @brianteeman We now get |
Have to correct a lot of scss cs, does not prevent from testing ;) |
why is the background size so big? background-image:url('data:image/svg+xml;utf8,<svg width="1792" height="1792" viewBox="0 0 1792 1792" xmlns="http://www.w3.org/2000/svg"><path fill="rgba(255, 255, 255, .95)" d="M1299 813l-422 422q-19 19-45 19t-45-19l-294-294q-19-19-19-45t19-45l102-102q19-19 45-19t45 19l147 147 275-275q19-19 45-19t45 19l102 102q19 19 19 45t-19 45zm141 83q0-148-73-273t-198-198-273-73-273 73-198 198-73 273 73 273 198 198 273 73 273-73 198-198 73-273zm224 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/></svg>'); |
@Quy |
@Quy
I picked 2 of these at joomla-projects/custom-elements#99 (comment) |
I have tested this item ✅ successfully on c39992e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30516. |
I have tested this item ✅ successfully on c39992e This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30516. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30516. |
Thanks |
…om_templates * '4.0-dev' of github.com:joomla/joomla-cms: (70 commits) [4.0] Child templates consistency (joomla#30387) [4.0] favicon changes to support child templates (joomla#30388) [4.0] Update Readme for Api tests (joomla#30539) [4.0] [Multilingual Status module] Adding displaying a possible error if URL Language Code is empty (joomla#30537) [4.0] Display of horizontal mod_articles_news module (joomla#30527) [4.0] Useless installation lang strings (joomla#30568) [4.0] Numbers not digits (joomla#30559) [4.0] Accessibility plugin position (joomla#30552) [4.0] fix for inherit fields (joomla#30557) [4.0] Redundant words (joomla#30555) add missing legend to fieldset (joomla#30528) [4.0] [a11y] add statement on found results (joomla#30535) [4.0] com_finder ul instead of dl for easier styling (joomla#30534) [4.0] Messages/Alerts: using icons instead of text as heading (joomla#30516) [4.0] Increase API Test Coverage (joomla#26722) [4.0] Implementing display of password requirements for frontend (joomla#30473) [4.0] FieldsHelper: Choose a first available category correctly (joomla#30268) Sort options (joomla#30531) Clear checkboxes on back button (joomla#30498) Update _icomoon.scss (joomla#30436) ...
Pull Request for Issue #30404
Summary of Changes
As title says, replacing text by icons in Alerts
Testing Instructions
Add to Atum and Cassiopea index.php
in order to test all kinds of messages
Patch, Run NPM CI
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Cassiopea
Atum
Documentation Changes Required