Skip to content

Commit

Permalink
feat(Dropdown): add hover text for selected option (#5519)
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Mar 5, 2020
1 parent f1ce802 commit e791626
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/react/src/components/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ export default class Dropdown extends React.Component {
<span
id={fieldLabelId}
className={`${prefix}--list-box__label`}
title={selectedItem ? itemToString(selectedItem) : label}
{...getLabelProps()}>
{selectedItem ? itemToString(selectedItem) : label}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ exports[`Dropdown should render 1`] = `
className="bx--list-box__label"
htmlFor="downshift-0-input"
id="dropdown-field-label-test-dropdown"
title="input"
>
input
</span>
Expand Down Expand Up @@ -287,6 +288,7 @@ exports[`Dropdown should render custom item components 1`] = `
className="bx--list-box__label"
htmlFor="downshift-4-input"
id="dropdown-field-label-test-dropdown"
title="input"
>
input
</span>
Expand Down Expand Up @@ -619,6 +621,7 @@ exports[`Dropdown should render with strings as items 1`] = `
className="bx--list-box__label"
htmlFor="downshift-3-input"
id="dropdown-field-label-test-dropdown"
title="input"
>
input
</span>
Expand Down

0 comments on commit e791626

Please sign in to comment.