Skip to content

Commit

Permalink
Fix input type for Tile ARIA label prop (#4668)
Browse files Browse the repository at this point in the history
* FIx Tile aria-label issue

* Update change output
  • Loading branch information
ThomasMichon authored and dzearing committed Apr 25, 2018
1 parent 802a2c0 commit 56c4cfb
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@uifabric/experiments",
"comment": "Fix bad aria-label prop in Tile",
"type": "patch"
}
],
"packageName": "@uifabric/experiments",
"email": "tmichon@microsoft.com"
}
2 changes: 1 addition & 1 deletion packages/experiments/src/components/Tile/Tile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class Tile extends BaseComponent<ITileProps, ITileState> {
return (
<span
role='checkbox'
aria-label={ String(toggleSelectionAriaLabel) }
aria-label={ toggleSelectionAriaLabel }
className={ css('ms-Tile-check', TileStyles.check, CheckStyles.checkHost, {
[CheckStyles.hostShowCheck]: this.state.isModal
}) }
Expand Down
4 changes: 2 additions & 2 deletions packages/experiments/src/components/Tile/Tile.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ export interface ITileProps extends IBaseProps, React.AllHTMLAttributes<HTMLSpan
/**
* The accessible label for the selection checkbox.
*
* @type {string | boolean}
* @type {string}
* @memberof ITileProps
*/
toggleSelectionAriaLabel?: string | boolean;
toggleSelectionAriaLabel?: string;

/**
* Link ref
Expand Down

0 comments on commit 56c4cfb

Please sign in to comment.