Make WordPress Core


Ignore:
Timestamp:
06/20/2024 08:25:38 PM (22 months ago)
Author:
joedolson
Message:

Editor: A11y: Set ARIA attributes for Classic Editor link inserter.

Set aria-modal and aria-hidden attributes when the Classic Editor link inserter modal is active, so that content behind the modal will be properly treated as inert when interacting with the modal.

Props lyonmuller, jwgoedert, sabernhardt, alexstine, afercia, rajinsharwar, rcreators, audrasjb, hmbashar, joedolson.
Fixes #60799.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-editor.php

    r57193 r58450  
    18761876        ?>
    18771877        <div id="wp-link-backdrop" style="display: none"></div>
    1878         <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-labelledby="link-modal-title">
     1878        <div id="wp-link-wrap" class="wp-core-ui" style="display: none" role="dialog" aria-modal="true" aria-labelledby="link-modal-title">
    18791879        <form id="wp-link" tabindex="-1">
    18801880        <?php wp_nonce_field( 'internal-linking', '_ajax_linking_nonce', false ); ?>
Note: See TracChangeset for help on using the changeset viewer.