Skip to content

Commit e85cfc9

Browse files
committed
Small accessibility fix
1 parent b57e530 commit e85cfc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/SLDSLookup/index.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,17 +188,17 @@ class SLDSLookup extends React.Component {
188188
return (
189189
<div className={componentClasses} data-select="single" data-scope="single" data-typeahead="true">
190190
<section className="slds-form-element">
191-
<label className="slds-form-element__label" forHTML="lookup">{this.props.label}</label>
191+
192+
<label className="slds-form-element__label" htmlFor={this.props.type + "Lookup"}>{this.props.label}</label>
192193

193194
<div className="slds-lookup__control slds-input-has-icon slds-input-has-icon--right">
194195
{ this.state.selectedIndex !== null ? this.renderSelectedItem() : null }
195196
<InputIcon name="search"/>
196197
<input
197-
id="lookup"
198+
id={this.props.type + "Lookup"}
198199
ref="lookup"
199200
className={inputClasses}
200201
type="text"
201-
aria-label="lookup"
202202
aria-haspopup="true"
203203
aria-autocomplete="list"
204204
aria-activedescendant={this.state.currentFocus ? this.state.currentFocus:""}

0 commit comments

Comments
 (0)