joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

Draft - [5.2.] Fix for Guidedtours Calendar Items - fix Issue #43671

Open coolcat-creations opened this issue 1 year ago • 16 comments

Pull Request for Issue #43671 .

Summary of Changes

I am neither sure if the Javascript I added os ok or at the correct position in code. The only thing is that it works ;) Maybe @obuisard can direct me if something needs to be changed there to be "the correct way"

Testing Instructions

Follow instructions from https://github.com/joomla/joomla-cms/issues/43671

Actual result BEFORE applying this Pull Request

The calendar Popup is not accessible

Expected result AFTER applying this Pull Request

The calendar Popup is in the front

Link to documentations

Please select:

  • [ ] Documentation link for docs.joomla.org:

  • [x ] No documentation changes for docs.joomla.org needed

  • [ ] Pull Request link for manual.joomla.org:

  • [ x] No documentation changes for manual.joomla.org needed

coolcat-creations avatar Oct 08 '24 16:10 coolcat-creations

How do I change the base branch, :-( clicked accidentally on 4.4

coolcat-creations avatar Oct 08 '24 16:10 coolcat-creations

In GitHub, edit the title. There is a dropdown to change the base branch.

44214

Quy avatar Oct 08 '24 17:10 Quy

@coolcat-creations Which base branch would be right? You can change it on GitHub as described by @Quy , or I can do that for you if I know the right branch.

richard67 avatar Oct 08 '24 17:10 richard67

I need it on 5.2 :)

coolcat-creations avatar Oct 08 '24 18:10 coolcat-creations

Done.

richard67 avatar Oct 08 '24 19:10 richard67

I have looked into it and tested the change. The PR goes in the right direction.

Although I agree this is mostly a problem of z-index, I am not certain the class change is necessary, as I see no difference with or without it (unless I missed something).

The PR fixes the issue for mouse clicks but it is not accessible. As soon as the arrow keys are used to change the dates in the calendar, the tour step buttons change focus and the tour starts to 'navigate itself away' from the step, going to next or previous steps. So, in a way, we need to 'block' events associated with the tour until the date is selected.

I can also see that the calendar buttons are not reachable through keyboard keys (I do not know what combination to use to access 'today, 'close' ...). But it is not a problem associated to the tours.

obuisard avatar Oct 08 '24 19:10 obuisard

Besides that, this PR has JavaScript code style errors. See the log here: https://ci.joomla.org/joomla/joomla-cms/79465/1/20

richard67 avatar Oct 08 '24 20:10 richard67

Yes it's not ready to be tested rather put for discussion.

coolcat-creations avatar Oct 08 '24 21:10 coolcat-creations

Yes it's not ready to be tested rather put for discussion.

Please change the PR to a draft then

brianteeman avatar Oct 09 '24 08:10 brianteeman

@obuisard Thank you, I removed adding the class because you are right, it does not change anything. Also, I did not mean accessible by terms of accessibility, but to be able to click into the calendar. I disabled the navigation through the tour when the calendar is open but after that step the tour is broken and the steps are not shown at their correct position, why? Is the way I solved the problem and the place where I did it correct? @richard67 I fixed the lint errors too :-)

coolcat-creations avatar Oct 09 '24 09:10 coolcat-creations

Done.

Thank you!

coolcat-creations avatar Oct 09 '24 09:10 coolcat-creations

This is how you convert a pull request to a draft image

brianteeman avatar Oct 09 '24 10:10 brianteeman

thank you @brianteeman

coolcat-creations avatar Oct 09 '24 10:10 coolcat-creations

@obuisard Thank you, I removed adding the class because you are right, it does not change anything. Also, I did not mean accessible by terms of accessibility, but to be able to click into the calendar. I disabled the navigation through the tour when the calendar is open but after that step the tour is broken and the steps are not shown at their correct position, why? Is the way I solved the problem and the place where I did it correct? @richard67 I fixed the lint errors too :-)

Thank you for the PR Elisa. As we get deeper into building tours, we hit a few limitations and I am hopeful we can 'fix' those limitations over time. As far as the latest modification you made for disabling tour keyboard events, I still have to look into it to see why it messes up the tour.

obuisard avatar Oct 09 '24 14:10 obuisard

Thank you for looking into it, The calendar a11y is another already open issue :)

coolcat-creations avatar Oct 09 '24 14:10 coolcat-creations

Maybe we should revisit the use of arrow keys in Shepherd (the library the guided tours are based on)... https://github.com/shepherd-pro/shepherd/issues/1873#issuecomment-1119405892

obuisard avatar Oct 18 '24 03:10 obuisard

Any news on this one?

Hackwar avatar Jan 16 '25 08:01 Hackwar

Any news on this one?

I believe we won't be able to fix this one, the calendar field is not accessible itself.

obuisard avatar Jan 16 '25 16:01 obuisard

This pull request has been automatically rebased to 5.3-dev.

HLeithner avatar Apr 15 '25 16:04 HLeithner

This pull request has been automatically rebased to 5.4-dev.

HLeithner avatar Oct 15 '25 17:10 HLeithner