diff --git a/common/changes/office-ui-fabric-react/rating-type_2018-02-21-04-05.json b/common/changes/office-ui-fabric-react/rating-type_2018-02-21-04-05.json new file mode 100644 index 0000000000000..d2bbaf994f0fe --- /dev/null +++ b/common/changes/office-ui-fabric-react/rating-type_2018-02-21-04-05.json @@ -0,0 +1,11 @@ +{ + "changes": [ + { + "packageName": "office-ui-fabric-react", + "comment": "Rating: Adding `type=button` to Rating buttons.", + "type": "patch" + } + ], + "packageName": "office-ui-fabric-react", + "email": "dzearing@microsoft.com" +} \ No newline at end of file diff --git a/packages/office-ui-fabric-react/src/components/Rating/Rating.base.tsx b/packages/office-ui-fabric-react/src/components/Rating/Rating.base.tsx index d9ab8a8b3b480..8344da7140f43 100644 --- a/packages/office-ui-fabric-react/src/components/Rating/Rating.base.tsx +++ b/packages/office-ui-fabric-react/src/components/Rating/Rating.base.tsx @@ -117,6 +117,7 @@ export class RatingBase extends BaseComponent { onFocus={ this._onFocus.bind(this, i) } disabled={ disabled || readOnly ? true : false } role='presentation' + type='button' > { this._getLabel(i) } diff --git a/packages/office-ui-fabric-react/src/components/Rating/__snapshots__/Rating.test.tsx.snap b/packages/office-ui-fabric-react/src/components/Rating/__snapshots__/Rating.test.tsx.snap index fc292a8d5840e..18c3c11fa90a0 100644 --- a/packages/office-ui-fabric-react/src/components/Rating/__snapshots__/Rating.test.tsx.snap +++ b/packages/office-ui-fabric-react/src/components/Rating/__snapshots__/Rating.test.tsx.snap @@ -72,6 +72,7 @@ exports[`Rating Renders Rating correctly 1`] = ` id="Rating0-star-0" onFocus={[Function]} role="presentation" + type="button" >