-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Changing title to tooltip for template preview #33292
Conversation
I have tested this item ✅ successfully on 352b4c3 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
This is not correct. Please test with a screen reader. |
If it is no correct, then propose something that works. |
Explaining more.
But I have no idea how to do when we have no link. I.e. when no preview.
|
What is the purpose of |
I did not touch that, It was there before as you can see in the diff. |
So normally, the PR is now OK by adding anything else can be modified if necessary in another PR. Now preparing another PR to use |
Maybe not but your changes have an impact on the existing code |
no idea what you mean. Want me to also close that one on a useless comment? |
I have tested this item ✅ successfully on edf8bbf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
1 similar comment
I have tested this item ✅ successfully on edf8bbf This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
@brianteeman |
(PS hope you are well - not seen you online for longer than usual) |
@sandramay0905 @RickR2H Could you test this PR again? It has received changes. Thanks in advance. |
Deleted redundant span. Afterthought: What do you think about using a new string: |
Open or Preview - both are fine - whichever you prefer is fine by me |
I have tested this item ✅ successfully on 5442371 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
<?php else : ?> | ||
<span class="icon-eye-slash" aria-hidden="true" title="<?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?>"></span> | ||
<span class="visually-hidden"><?php echo Text::_('COM_TEMPLATES_TEMPLATE_NO_PREVIEW'); ?></span> | ||
<a href="#" aria-labelledby="nopreview-<?php echo (int) $item->id; ?>"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is missing </a>
. Plus it gives the impression that the button is clickable when it is not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indeed. We do not need the <a
at all.
Thanks @Quy |
@sandramay0905 @RickR2H Could you test this PR again? Modified some aspects. test specially when no preview in template styles. |
I have tested this item ✅ successfully on b57d245 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
administrator/components/com_templates/tmpl/templates/default.php
Outdated
Show resolved
Hide resolved
@RickR2H can you please retest? |
I have tested this item ✅ successfully on 490cfb0 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33292. |
Thanks! |
* [4.0] Notification icons (#34226) * remove method allow parent to run (#34118) Co-authored-by: Richard Fath <[email protected]> * [4.0] Changing title to tooltip for template preview (#33292) * [4.0] Changing title to tooltip fpr template preview * Update location path in description (#34238) * Fix patterns field check when field empty and not required (#34124) * [4.0] Finish transition from CSS classes "label-" to "alert-" for the pre-update check (#34227) * [4.0] mod_popular with disabled hits (#34257) * [4.0] mod_popular with disabled hits When hits are disabled for articles it makes no sense to display the Most Read Articles module in the site or admin as the contents will never be updated. This PR changes the output of the module so that instead of a list of non-updating articles a message is displayed. * [4.0] Use MVCFactory to create model (#34092) * Use MVCFactory to create models * CS * Fix row selecting, when module is disabled (#34273) * Media web service implementation. * Media web service implementation. * Fix hard coded adapter name default. * Fix missing url and tempUrl attributes in single item response. * Remove useless comments. * Replace 'PATH' with 'STRING' for cleaning of input parameters. * Adds required parameter checks and removes global exception handling. * Adds media web service specific language strings. * Adds exception handling. * Adds missing exception handler and fixes wrong path return value after move/rename. * Use exception message as error title. * Adds proper FileNotFound exception handling for GET requests. * Fixes handling of status code. * Fixes some types, formatting and similar stuff. * Fixes yet another sloppy typo. * restore file * Fix some docs * Adapter endpoint * Add plugin to install file * Add tests * Update api/components/com_media/src/Helper/MediaHelper.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Helper/MediaHelper.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Model/MediaModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Model/MediumModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/View/Media/JsonapiView.php Co-authored-by: Phil E. Taylor <[email protected]> * Update libraries/src/Error/JsonApi/SaveExceptionHandler.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Controller/MediaController.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Controller/MediaController.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Model/AdaptersModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Update api/components/com_media/src/Model/MediaModel.php Co-authored-by: Phil E. Taylor <[email protected]> * docs * Update api/components/com_media/src/View/Media/JsonapiView.php Co-authored-by: Phil E. Taylor <[email protected]> * int * cs * cs * more cleanup * tabs * restore * Test all endpoints * Update api/components/com_media/src/Model/MediaModel.php Co-authored-by: Phil E. Taylor <[email protected]> * Hardening * Tests fix for drone * Update Api.php * Create directory in test with correct permissions * Add more tests and remove static helper * Update tests/Codeception/api/com_media/MediaCest.php Co-authored-by: Phil E. Taylor <[email protected]> * Update tests/Codeception/_support/Helper/Api.php Co-authored-by: Phil E. Taylor <[email protected]> * cs Co-authored-by: Brian Teeman <[email protected]> Co-authored-by: Phil E. Taylor <[email protected]> Co-authored-by: Richard Fath <[email protected]> Co-authored-by: infograf768 <[email protected]> Co-authored-by: Quy <[email protected]> Co-authored-by: Ruud <[email protected]> Co-authored-by: Tuan Pham Ngoc <[email protected]> Co-authored-by: Fedir Zinchuk <[email protected]> Co-authored-by: Pieter-Jan de Vries <[email protected]>
Summary of Changes
As title says.
Testing Instructions
Load Template styles manager and switch Options => Preview Module Positions on and off.
Same for Templates Manager
Hover the Preview icon
Actual result BEFORE applying this Pull Request
Expected result AFTER applying this Pull Request
Documentation Changes Required