Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 83deb58

Browse files
CarlosLongarelamkaz
authored andcommitted
Changed lang attribute to data-lang, screen readers
1 parent 8f84381 commit 83deb58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/save.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const save = ( { attributes } ) => {
2828
// Backward compatibility < WP 5.6
2929
return (
3030
<pre className="wp-block-code" title={ attributes.title }>
31-
<code lang={ attributes.language } className={ cls }>
31+
<code data-lang={ attributes.language } className={ cls }>
3232
{ attributes.content }
3333
</code>
3434
</pre>

0 commit comments

Comments
 (0)