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

Commit 8d5af99

Browse files
CarlosLongarelamkaz
authored andcommitted
Changed lang attribute to data-lang, screen readers
1 parent fed71e6 commit 8d5af99

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
@@ -5,7 +5,7 @@ const save = ( { attributes } ) => {
55
cls = ( attributes.lineNumbers ) ? cls + ' line-numbers' : cls;
66
return (
77
<pre title={ attributes.title }>
8-
<code lang={ attributes.language } className={ cls }>
8+
<code data-lang={ attributes.language } className={ cls }>
99
{ attributes.content }
1010
</code>
1111
</pre>

0 commit comments

Comments
 (0)