diff --git a/common/changes/@uifabric/utilities/keco-fix-merge-aria-attrs_2019-02-21-18-39.json b/common/changes/@uifabric/utilities/keco-fix-merge-aria-attrs_2019-02-21-18-39.json new file mode 100644 index 00000000000000..2ed67ee46a4eb5 --- /dev/null +++ b/common/changes/@uifabric/utilities/keco-fix-merge-aria-attrs_2019-02-21-18-39.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "@uifabric/utilities", + "comment": "Modify mergeAriaAttributeValues to return space delimited string of values", + "type": "patch" + } + ], + "packageName": "@uifabric/utilities", + "email": "keco@microsoft.com" +} \ No newline at end of file diff --git a/packages/utilities/src/aria.ts b/packages/utilities/src/aria.ts index 2dc852d098fe6e..38328b770870b7 100644 --- a/packages/utilities/src/aria.ts +++ b/packages/utilities/src/aria.ts @@ -2,11 +2,9 @@ * ARIA helper to concatenate attributes, returning undefined if all attributes * are undefined. (Empty strings are not a valid ARIA attribute value.) * - * NOTE: This function will NOT insert whitespace between provided attributes. - * * @param ariaAttributes - ARIA attributes to merge */ export function mergeAriaAttributeValues(...ariaAttributes: (string | undefined)[]): string | undefined { - const mergedAttribute = ariaAttributes.filter((arg: string | undefined) => arg !== undefined && arg !== null).join(''); + const mergedAttribute = ariaAttributes.filter((arg: string | undefined) => arg !== undefined && arg !== null).join(' '); return mergedAttribute === '' ? undefined : mergedAttribute; }