File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ class="post-sharing"
3737 <span class="post-sharing__label"><?php echo esc_html__ ( 'Share ' , 'beapi-frontend-framework ' ); ?> </span>
3838 </button>
3939 </div>
40- <p class="post-sharing__status" role="status" aria-live="polite" hidden ></p>
40+ <p class="post-sharing__status sr-only " role="status" aria-live="polite"></p>
4141</div>
Original file line number Diff line number Diff line change @@ -60,12 +60,12 @@ PostSharing.defaults = {
6060 * @param {number } delay Duration before clearing (ms).
6161 */
6262function showTemporaryMessage ( el , message , delay ) {
63+ // Keep the live region in the accessibility tree (no `hidden`):
64+ // `sr-only` already hides it visually; toggling `hidden` would block announcements.
6365 el . textContent = message
64- el . hidden = false
6566
6667 window . setTimeout ( ( ) => {
6768 el . textContent = ''
68- el . hidden = true
6969 } , delay )
7070}
7171
Original file line number Diff line number Diff line change 11@use " ../01-abstract/theme-json" as * ;
22@use " ../02-tools/m-breakpoint" as * ;
33@use " ../02-tools/m-hover" as * ;
4- @use " ../02-tools/m-sr-only" as * ;
54
65/* *
76 * Post sharing — copy link (desktop) / native share (mobile).
8180 }
8281 }
8382
84- & __status {
85- @include sr-only ;
86- }
87-
8883 // Fallback when Web Share API is unavailable: show copy on small screens.
8984 & --no-native-share {
9085 #{$el } __button--share {
You can’t perform that action at this time.
0 commit comments