-
-
Notifications
You must be signed in to change notification settings - Fork 79
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
Accessibility : Buttons without text or aria label, texts are all in divs only.. #161
Comments
What answer do you expect to hear by asking this question? 😄 If you have suggestions for improving the calendar, I'm open to consider them, just write them in a constructive way, please. |
Hi Vladimir It was not my intention at all and I apologize. I was just trying to write what I see as lacking a short list so it will be readable..
Thanks |
I agree, there are a11y issues. Thanks for the suggestions, I'll try to implement them in the next updates. |
Version 1.5.1 fixed some issues with a11y:
|
That's amazing (: Thank you About 3 - I agree that it was perhaps too specific, but since the event title and content are texts elements with semantic meaning, it is better to use a different element if possible. I'm not sure why others don't take it into account List:
From: January 1, 2023 To: December 31, 2023
"The Events Calendar" plugin uses specific elements - article, h, p: The Guardian uses fullcalendar as well ( apparently ), and the inner elements HTML are p and h for title and content
What do you think? |
Thanks for the examples. Indeed someone is using |
Amazing, thanks |
@eddr Sorry, this took a while. I released version 2.5.0 which contains:
Please test it and tell me what you think. |
Amazing work |
Great. A small clarification - events are accessible from the keyboard only when the Let me close this ticket and ask that a new issue be opened for future improvements. Thanks. |
Thanks a lot! But I still do not get aria-label for the ec-prev and ec-next buttons. Do I need to enable them somewhere? |
No, it should work out of the box. Are you accidentally overriding the buttonText option? |
Oh Yes, I am overriding the 'today' button because I want it to display in a different language. I am not overriding the next/prev buttons. Is there any way I can keep the aria-labels for the navigation buttons while displaying custom text for the today button? Thanks a lot! FYI, I have this: |
The current strategy for merging options for each view is as follows:
where As you can see, by passing the When the So try buttonText: function (text) {
text.today = 'my custom text';
return text;
} |
It works! Thanks a lot! But I have another question. Is there any way to set custom aria-labels too? It's because sometimes I may need those labels in another language as well. Thank you! |
Sure. There are buttonText: function (text) {
text.today = 'my custom text';
text.prev = 'my custom text';
text.next = 'my custom text';
return text;
} |
Thanks a lot! |
Hi
Checking the demo site, it seems that the content is not accessible even on the basic level:
Is it on purpose?
Thanks
The text was updated successfully, but these errors were encountered: