Skip to content

Commit 1ae2707

Browse files
committed
add accessibility attrs to snowflake form
1 parent 355959b commit 1ae2707

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/webviews/webview-side/integrations/SnowflakeForm.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
266266
)}{' '}
267267
<span className="required">{getLocString('integrationsRequiredField', '*')}</span>
268268
</label>
269-
<p className="form-help-text">
269+
<p className="form-help-text" id="username-help">
270270
{getLocString(
271271
'integrationsSnowflakeServiceAccountUsernameHelp',
272272
'The username of the service account that will be used to connect to Snowflake'
@@ -281,6 +281,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
281281
autoComplete="username"
282282
required
283283
pattern=".*\S.*"
284+
aria-describedby="username-help"
284285
/>
285286
</div>
286287

@@ -289,7 +290,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
289290
{getLocString('integrationsSnowflakePrivateKeyLabel', 'Private Key')}{' '}
290291
<span className="required">{getLocString('integrationsRequiredField', '*')}</span>
291292
</label>
292-
<p className="form-help-text">
293+
<p className="form-help-text" id="privateKey-help">
293294
{getLocString(
294295
'integrationsSnowflakePrivateKeyHelp',
295296
'The private key in PEM format. Make sure to include the entire key, including BEGIN and END markers.'
@@ -309,6 +310,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
309310
autoCorrect="off"
310311
autoCapitalize="off"
311312
required
313+
aria-describedby="privateKey-help"
312314
/>
313315
</div>
314316

@@ -319,7 +321,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
319321
'Private Key Passphrase (optional)'
320322
)}
321323
</label>
322-
<p className="form-help-text">
324+
<p className="form-help-text" id="privateKeyPassphrase-help">
323325
{getLocString(
324326
'integrationsSnowflakePrivateKeyPassphraseHelp',
325327
'If the private key is encrypted, provide the passphrase to decrypt it'
@@ -335,6 +337,7 @@ export const SnowflakeForm: React.FC<ISnowflakeFormProps> = ({
335337
'Private key passphrase (optional)'
336338
)}
337339
autoComplete="off"
340+
aria-describedby="privateKeyPassphrase-help"
338341
/>
339342
</div>
340343
</>

0 commit comments

Comments
 (0)