You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -70,6 +73,7 @@ The `language` argument sets the syntax highlighting used. We only support the f
70
73
71
74
```handlebars
72
75
<Hds::CodeBlock
76
+
@ariaLabel="language"
73
77
@language="go"
74
78
@value="package main
75
79
import fmt
@@ -85,6 +89,7 @@ Set `hasCopyButton` to `true` to display a button for users to copy `CodeBlock`
85
89
86
90
```handlebars
87
91
<Hds::CodeBlock
92
+
@ariaLabel="copy button"
88
93
@language="javascript"
89
94
@hasCopyButton={{true}}
90
95
@copyButtonText="Copy javascript code"
@@ -99,6 +104,7 @@ Line numbers are displayed by default. Set `hasLineNumbers` to `false` to hide t
99
104
100
105
```handlebars
101
106
<Hds::CodeBlock
107
+
@ariaLabel="line numbers"
102
108
@language="javascript"
103
109
@hasLineNumbers={{false}}
104
110
@value="let codeLang=`JavaScript`;
@@ -118,6 +124,7 @@ By default, long lines of code will overflow the `CodeBlock` container requiring
118
124
119
125
```handlebars
120
126
<Hds::CodeBlock
127
+
@ariaLabel="line wrapping"
121
128
@language="javascript"
122
129
@hasLineWrapping={{true}}
123
130
@value="console.log(`I am JavaScript code`, `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam`);"
@@ -130,6 +137,7 @@ Highlight either individual code lines or a range of code lines. (Examples: `2,
130
137
131
138
```handlebars
132
139
<Hds::CodeBlock
140
+
@ariaLabel="line highlighting"
133
141
@language="javascript"
134
142
@highlightLines={{"2, 4"}}
135
143
@value="import Application from `@ember/application`;
0 commit comments