-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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] [a11y] Make ActionButton Featured accessible #23718
Conversation
Almost perfect. woohoo
|
|
In sort I think no. The reason is that the effect is not realtime (you submitting a form each time you're clicking on any of these). If you change the front end logic so the form submission will happen with an Ajax then a switcher will be fine but with the current code the current approach is fine |
@dgrammatiko : OK, thx.
Add |
@chmst @zwiastunsw here is some (untested) code: <?php if (empty($disabled)): ?>
onclick="return false;"
<?php endif; ?>
<?php if(!empty($task) && empty($disabled)): ?>
onclick="return Joomla.listItemTask('<?php echo $checkboxName . $this->escape($row ?? ''); ?>', '<?php echo $this->escape(isset($task) ? $taskPrefix . $task : ''); ?>')"
<?php endif; ?> |
You are absolutely correct. But its really beyond the scope of this PR to address this as it is a bigger issue that I raised before. The information that the feature has been changed that takes the focus has incorrectly got a role of alert. It shouldnt be an alert as an alert will always "steal" the focus.
Either that or an outline in CSS |
Thank you for advices. I have prepared a new commit.
I have changed: About the message and the focus - as @brianteeman says, it is out of scope of this PR |
I propose to add to the tag button title attribute calling the current status |
I added a title instead of sr-only. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23718. |
I'm sory. My mistake. I am withdrawing my positive test. |
Please retest. Thank you for your patience. If this is all right, I will change other list views in the same way. |
I suggested using the
(Karl Groves, December 15, 2017). Now some screen readers will double the label. However, I think this is more accessible than without the |
I have tested this item ✅ successfully on 390f47b This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23718. |
Thank you for testing. The title attribute is ugly. I have isolated the column for Featured, hoping that the meaning of the button is evident for sighted administrators. But if it is necessary ... |
@brianteeman What is your opinion. Because @chmst rightly says that the name of the column should be enough. Maybe I mixed up unnecessarily... |
I agree 100% with @chmst |
I have tested this item ✅ successfully on c3772f9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23718. |
1 similar comment
I have tested this item ✅ successfully on c3772f9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23718. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23718. |
Thanks! |
Summary of Changes
Action Buttons for featuring articles for example in com_content/articles are Links, not Buttons.
This PR
Testing Instructions
Apply the patch and see that the featured, unfeatured function works as before.
NOTE:
When activating one featured button, the corresponding checkbox and the Status Change Dropdown are activated for a moment. #23717
Documentation Changes Required
new screen