Skip to content

Update link.php#35771

Merged
laoneo merged 6 commits intojoomla:4.1-devfrom
kapetanov:patch-1
Apr 23, 2022
Merged

Update link.php#35771
laoneo merged 6 commits intojoomla:4.1-devfrom
kapetanov:patch-1

Conversation

@kapetanov
Copy link
Contributor

the pagnation in has an misuse of the aria-label. i fixed it with two span tags.

Pull Request for Issue # .

Summary of Changes

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

the pagnation in has an misuse of the aria-label. i fixed it with two span tags.
@brianteeman
Copy link
Contributor

Sorry I dont understand this change

@kapetanov
Copy link
Contributor Author

the aria-label does not work in span tags. that's why i put the value of the aria-label in a hidden span tag. assistive technology will be able to read this span tag. the original span tag is shown on normal displays and its hidden (aria-hidden="true") for assistive technology. thats why i use two span tags. one for assistive technology and one for displays.

@brianteeman
Copy link
Contributor

the aria-label does not work in span tags.

it does if its an interactive element - I agree that its not interactive here.

that's why i put the value of the aria-label in a hidden span tag

this is what I dont understand - it is still a non interactive span so it will still be ignored

@brianteeman
Copy link
Contributor

Before

image

After

image

image

@kapetanov
Copy link
Contributor Author

you need the value of the aria label because otherwise only the number of the page are readable for assistive technologies. that would be too little for people with visual impairment. for example, instead of '1' for assistive technologies, 'page 1' should be readable.

@brianteeman
Copy link
Contributor

only the number of the page are readable for assistive technologies. that would be too little for people with visual impairment.

I agree

The problem is that I do not see how your change will do that. The screenshots show that its not exposed in the accessibility tree

@kapetanov
Copy link
Contributor Author

ok, i see what u mean

@kapetanov
Copy link
Contributor Author

i think its the hidden css of bootstrap

@kapetanov
Copy link
Contributor Author

kapetanov commented Oct 6, 2021

ok, the current page must also be an link (a tag). not a span tag. then the aria-label will work (active element). tomorrow i made a new workaround.

@brianteeman
Copy link
Contributor

Not completely tested but this should work

<a aria-current="true" aria-label="<?php echo $aria; ?>" href="#" class="page-link"><?php echo $display; ?></a>

@richard67
Copy link
Member

@kapetanov It seems this PR is made to solve your issue #35758 . if that is right, you should have mentioned that issue at the top of your PR description, i.e. „Pull request for issue #35758 “. Please add that, and please close your issue with reference to the pull request here. Thanks in advance.

@kapetanov
Copy link
Contributor Author

@brianteeman yes, it works. i have tested it.

@Quy Quy added the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Oct 12, 2021
@Quy Quy removed the Updates Requested Indicates that this pull request needs an update from the author and should not be tested. label Dec 9, 2021
Co-authored-by: Brian Teeman <brian@teeman.net>
@Quy Quy changed the base branch from 4.0-dev to 4.1-dev January 27, 2022 17:39
@Quy Quy removed the PR-4.0-dev label Jan 27, 2022
@Quy Quy added a11y Accessibility JBS labels Feb 5, 2022
@Quy Quy added PBF Pizza, Bugs and Fun and removed JBS labels Feb 9, 2022
@patvb2003
Copy link

I have tested this item ✅ successfully on 19a3ddd


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

1 similar comment
@kiki-G
Copy link

kiki-G commented Apr 22, 2022

I have tested this item ✅ successfully on 19a3ddd


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

@richard67
Copy link
Member

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 22, 2022
@chmst chmst removed the RTC This Pull Request is Ready To Commit label Apr 22, 2022
@chmst
Copy link
Contributor

chmst commented Apr 22, 2022

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Apr 22, 2022
@laoneo laoneo merged commit 5551636 into joomla:4.1-dev Apr 23, 2022
@laoneo
Copy link
Member

laoneo commented Apr 23, 2022

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Apr 23, 2022
@laoneo laoneo added this to the Joomla 4.1.3 milestone Apr 23, 2022
@richard67 richard67 removed the PBF Pizza, Bugs and Fun label Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a11y Accessibility

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants