joomla-projects / j4adminui

Joomla!4 alternative backend template
GNU General Public License v2.0
24 stars 18 forks source link

Fixed issue #129, accessibility issue for add module to dashboard modal. #135

Closed ahamed closed 4 years ago

ahamed commented 4 years ago

Pull Request for Issue #129, #128.

Summary of Changes

This PR fixes accessibility issues of Add module to the dashboard modal. The following PR changes -

Testing Instructions

Go to Dashboard and scroll to the bottom of the page and click Add modules to the dashboard button.

Expected result

The corresponding elements must havearia-* attributes.

Actual result

No aria-* attributes found.

Documentation Changes Required

brianteeman commented 4 years ago

On the modal view the select link have a class image

On the regular view (administrator/index.php?option=com_modules&view=select&client_id=1) the select links have no class image

is that intentional?

ahamed commented 4 years ago

It's not intentional, it's a mistake. The class is added there conditionally we need to add the class attribute inside the condition. I will fix it here.

brianteeman commented 4 years ago

does what it says

ahamed commented 4 years ago

does what it says

It's fixed.

NguyenTrang091296 commented 4 years ago

I checked and I see aria-label has been updated for all "Select". But Modules page, It still mistake class. image image

ahamed commented 4 years ago

But Modules page, It still mistake class.

The class is needed only for the modal view. So we remove it from the module view. It's intentional.

NguyenTrang091296 commented 4 years ago

But Modules page, It still mistake class.

The class is needed only for the modal view. So we remove it from the module view. It's intentional.

Yes. Tks!