Skip to content
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

ADA compliance #320

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

ADA compliance #320

wants to merge 2 commits into from

Conversation

syntax53
Copy link

There are issues with the NAV buttons and satisfying ADA compliance for web sites -- http://wave.webaim.org . These changes satisfy the checker.

add hidden span elements to nav buttons for ADA compliance
change TH tags surrounding nav buttons to TD tags and add hidden span elements for ADA compliance
@damonsharp damonsharp changed the base branch from dev to master May 4, 2019 23:19
@damonsharp damonsharp changed the base branch from master to dev May 4, 2019 23:20
@rosinghal
Copy link
Member

@syntax53 would you be open to check if it works with the latest WP and PHP since this is a very old PR?

<th class="simcal-nav simcal-prev-wrapper" colspan="<?php echo apply_filters( 'simcal_prev_cols', '1' ); ?>">
<button class="simcal-nav-button simcal-month-nav simcal-prev" title="<?php _e( 'Previous Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-left"></i></button>
</th>
<td class="simcal-nav simcal-prev-wrapper" colspan="<?php echo apply_filters( 'simcal_prev_cols', '1' ); ?>">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interested to know why this changed from th to td?

<button class="simcal-nav-button simcal-month-nav simcal-prev" title="<?php _e( 'Previous Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-left"></i></button>
</th>
<td class="simcal-nav simcal-prev-wrapper" colspan="<?php echo apply_filters( 'simcal_prev_cols', '1' ); ?>">
<button class="simcal-nav-button simcal-month-nav simcal-prev" title="<?php _e( 'Previous Month', 'google-calendar-events' ); ?>"><i class="simcal-icon-left"></i><span style="display:none;"><?php _e( 'Previous Month', 'google-calendar-events' ); ?></span></button>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use ARIA instead of adding a hidden text?

@@ -204,6 +204,7 @@ public function html() {
echo "\t" . '<div class="simcal-nav">' . "\n";
echo "\t\t" . '<button class="simcal-nav-button simcal-prev" title="' . __('Previous', 'google-calendar-events') . '"' . $disabled . '>' . "\n";
echo "\t\t\t" . '<i class="simcal-icon-left"></i>' . "\n";
echo "\t\t\t" . '<span style="display:none;">' . __('Previous', 'google-calendar-events') . '</span>' . "\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, can we can use ARIA in the above line?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants