Skip to content

Commit

Permalink
Merge pull request JedWatson#3964 from anthonyvialleton/master
Browse files Browse the repository at this point in the history
A11yText DOM structure fix (breaking W3C validation)
  • Loading branch information
JedWatson authored Aug 27, 2020
2 parents 801cd5b + 1f965ab commit 397e953
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-select/src/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -1818,8 +1818,8 @@ export default class Select extends Component<Props, State> {
if (!this.state.isFocused) return null;
return (
<A11yText aria-live="polite">
<p id="aria-selection-event">&nbsp;{this.state.ariaLiveSelection}</p>
<p id="aria-context">&nbsp;{this.constructAriaLiveMessage()}</p>
<span id="aria-selection-event">&nbsp;{this.state.ariaLiveSelection}</span>
<span id="aria-context">&nbsp;{this.constructAriaLiveMessage()}</span>
</A11yText>
);
}
Expand Down

0 comments on commit 397e953

Please sign in to comment.