NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar Quy
Quy
13 Jul 2020

Summary of Changes

  • Move message to the bottom of the field to prevent field shrinking and expanding when displaying the message
  • Replace obsolete class

Testing Instructions

Run npm run build:css
Go to System > Language Overrides
Create a new override
Click cursor in Search Text field

Actual result BEFORE applying this Pull Request

30096-before

Expected result AFTER applying this Pull Request

30096-after

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
2.00

avatar Quy Quy - open - 13 Jul 2020
avatar Quy Quy - change - 13 Jul 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 13 Jul 2020
Category Administration com_languages
avatar ceford
ceford - comment - 14 Jul 2020

I don't see any difference, with or without the patch. Can you supply a screen shot showing what to look for?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar richard67
richard67 - comment - 14 Jul 2020

I don't see any difference, with or without the patch. Can you supply a screen shot showing what to look for?

Same for me. In both cases without and with this PR I have the popup message above the search box.

avatar richard67
richard67 - comment - 14 Jul 2020

@ceford I think I found our both mistake: It is not the search box in the toolbar of the list view we have to check, it is the search box at the right bottom place of the edit dialogue when creating a new override or editing an existing one ;-)

avatar brianteeman
brianteeman - comment - 14 Jul 2020

thats why screenshots are so helpful ;)

avatar richard67
richard67 - comment - 14 Jul 2020

thats why screenshots are so helpful ;)

Agree.

Beside that, this status message seems to be a tricky thing. Currently it doesn't show up at all, whatever I do.

avatar richard67
richard67 - comment - 14 Jul 2020

Ahhh .. you have to clear the cache in the list view so the message about cache recreation is shown when entering the search box in the edit view.

avatar brianteeman
brianteeman - comment - 14 Jul 2020

was just typing that info for you ;)

avatar richard67 richard67 - test_item - 14 Jul 2020 - Tested successfully
avatar richard67
richard67 - comment - 14 Jul 2020

I have tested this item successfully on ed26f38

Very tricky to reproduce the issue.

  1. It is the search box at the bottom right corner of the edit dialog when creating a new language override or modifying an existing one, not the one in the list view like I first thought.
  2. The status message about cache rebuild only appears if cache cleared in the list view and then logged out and in again, or if using another language and site combination which hasn't been used before.
  3. It needs a very large display to reproduce the issue with the message appearing beside the search field and so making it shrink.

But I can confirm that this PR solves that issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar brianteeman
brianteeman - comment - 14 Jul 2020

I am fairly certain that this breaks the accessibility by putting the message in a new div instead of inside the input div

avatar richard67
richard67 - comment - 14 Jul 2020

Even with aria-hidden="true" for the message?

avatar brianteeman
brianteeman - comment - 14 Jul 2020

that is on the icon not on the text. You want the text to be accessible and connected to the input

avatar richard67 richard67 - test_item - 14 Jul 2020 - Not tested
avatar richard67
richard67 - comment - 14 Jul 2020

I have not tested this item.

Changing back to not tested until some feedback from an accessibility expert.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar ceford
ceford - comment - 14 Jul 2020

Below the Search Text Field I see a brief message: 'Please Wait while the cache is recreated' on the first click only, with an without the patch. It most vanishes instantly. Clearing the cache in the list view does not make it reappear. It does reappear if I select a different client or language. As far as I can tell the patch does nothing!

avatar Quy Quy - change - 14 Jul 2020
The description was changed
avatar Quy Quy - edited - 14 Jul 2020
avatar Quy
Quy - comment - 14 Jul 2020

@ceford What is your monitor's resolution? On 1920x1080, this can be reproduced.

avatar Quy
Quy - comment - 14 Jul 2020

Updated with screenshots in the original post.

avatar ceford
ceford - comment - 14 Jul 2020

I am using a Macbook Pro - a screen grab is 2880 x 1498 but I think the horizontal resolution is really 1440. I only see the message below the Search Text field so I guess it has already wrapped - mystery solved.

avatar richard67
richard67 - comment - 15 Jul 2020

@Quy Regarding Brian's comment about accessibility: Would it be an alternative solution to leave HTML markup like it is, i.e. a span, and add some css for block display? This should be still accessible.

avatar chmst
chmst - comment - 15 Jul 2020

Not sure if it is a a11y issue. IBut also for sighted users it would be nice to hide the input group while the search is going on.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar chmst chmst - change - 15 Jul 2020
Category Administration com_languages Accessibility Administration com_languages
avatar hans2103
hans2103 - comment - 22 Jul 2020

@Quy There is no need to put the span .help-block in a new div outside div .input-group.
It seems that .input-group is styled with display: flex;flex-wrap: wrap;.
Just add add flex-basis: 100% to .help-block the issue is solved.
Can you adjust your PR with this change?

Run npm build:css after applying the patch to test the change.

Schermafdruk 2020-07-22 22 34 14

avatar Quy Quy - change - 22 Jul 2020
Labels Added: ?
72522b7 22 Jul 2020 avatar Quy css
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2020
Category Administration com_languages Accessibility Repository NPM Change Accessibility
avatar Quy Quy - change - 22 Jul 2020
Labels Added: NPM Resource Changed
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jul 2020
Category Accessibility Repository NPM Change Administration com_languages Repository NPM Change Accessibility
avatar hans2103
hans2103 - comment - 22 Jul 2020

Just add add flex-basis: 100% to .help-block the issue is solved.

With reverting your changes the className .help-block is gone too.
Please adjust your PR to a flex-basis on #refresh-status only.

I always prevent touching with id's and try to work with classNames instead.
But using id #refresh-status is consistent with the rest of the css document.

avatar Quy
Quy - comment - 22 Jul 2020

Done. Thanks!

avatar hans2103
hans2103 - comment - 22 Jul 2020

For those who want to test this issue.
After applying the patch you have to run npm run build:css.
After reverting the patch you should run the same command again.

avatar hans2103 hans2103 - test_item - 22 Jul 2020 - Tested successfully
avatar hans2103
hans2103 - comment - 22 Jul 2020

I have tested this item successfully on a11e80e

run command npm run build:css after applying the page to see the change


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar Quy Quy - change - 23 Jul 2020
The description was changed
avatar Quy Quy - edited - 23 Jul 2020
avatar Quy Quy - change - 23 Jul 2020
The description was changed
avatar Quy Quy - edited - 23 Jul 2020
avatar infograf768 infograf768 - test_item - 24 Jul 2020 - Tested successfully
avatar infograf768
infograf768 - comment - 24 Jul 2020

I have tested this item successfully on a11e80e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar infograf768 infograf768 - change - 24 Jul 2020
Status Pending Ready to Commit
avatar infograf768
infograf768 - comment - 24 Jul 2020

rtc


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30096.

avatar infograf768 infograf768 - change - 24 Jul 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-07-24 06:15:02
Closed_By infograf768
Labels Added: ?
avatar infograf768 infograf768 - close - 24 Jul 2020
avatar infograf768 infograf768 - merge - 24 Jul 2020
avatar infograf768
infograf768 - comment - 24 Jul 2020

Tks

Add a Comment

Login with GitHub to post a comment