Skip to content
This repository has been archived by the owner on Oct 19, 2021. It is now read-only.

Commit

Permalink
Merge branch 'master' into arbitrary-component-button
Browse files Browse the repository at this point in the history
  • Loading branch information
asudoh authored Feb 20, 2019
2 parents 9fbfcbf + 9905920 commit f6b925b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/components/DropdownV2/DropdownV2.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,7 @@ export default class DropdownV2 extends React.Component {
key={itemToString(item)}
isActive={selectedItem === item}
isHighlighted={
highlightedIndex === index ||
(selectedItem && selectedItem.id === item.id) ||
false
highlightedIndex === index || selectedItem === item
}
{...getItemProps({ item, index })}>
{itemToElement ? (
Expand Down
2 changes: 0 additions & 2 deletions src/components/ToggleSmall/ToggleSmall-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import ToggleSmallSkeleton from '../ToggleSmall/ToggleSmall.Skeleton';
const toggleProps = () => ({
className: 'some-class',
ariaLabel: text('ARIA label (ariaLabel)', 'Label Name'),
labelA: text('Label for untoggled state (labelA)', 'Off'),
labelB: text('Label for toggled state (labelB)', 'On'),
onChange: action('onChange'),
onToggle: action('onToggle'),
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/ToggleSmall/ToggleSmall.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const ToggleSmall = ({
</svg>
)}
</span>
<span class={`${prefix}--assistive-text`}>{ariaLabel}</span>
<span className={`${prefix}--assistive-text`}>{ariaLabel}</span>
</label>
</div>
);
Expand Down

0 comments on commit f6b925b

Please sign in to comment.