Skip to content

fix (beapi-tabs-block): allow attribute tab index for non admin editors#5

Merged
firestar300 merged 1 commit intodevelopfrom
fix/allow-attributes
Feb 26, 2025
Merged

fix (beapi-tabs-block): allow attribute tab index for non admin editors#5
firestar300 merged 1 commit intodevelopfrom
fix/allow-attributes

Conversation

@firestar300
Copy link
Copy Markdown
Contributor

  • Autorise les attributs tabindex et aria-expanded sur le bloc pour éviter une erreur lors de l'édition d'un utilisateur non-admin.

@firestar300 firestar300 merged commit 0c3180e into develop Feb 26, 2025
@firestar300 firestar300 deleted the fix/allow-attributes branch February 26, 2025 09:48
Comment thread blockparty-tabs.php
function allow_attributes( $tags, $context ) {
if ( 'post' === $context ) {
$tags['button']['aria-expanded'] = true;
$tags['div']['tabindex'] = true;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

L'alignement est pas bon.

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.

3 participants