Skip to content

Commit

Permalink
Merge branch 'master' into 2809-voiceover-does-not-announce-toggle-la…
Browse files Browse the repository at this point in the history
…bels
  • Loading branch information
tw15egan authored Jun 26, 2019
2 parents 0ecd064 + 5fc3498 commit 62654dc
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 24 deletions.
4 changes: 0 additions & 4 deletions packages/components/docs/sass.md
Original file line number Diff line number Diff line change
Expand Up @@ -13244,10 +13244,6 @@ List box styles
}
}

.#{$prefix}--list-box[data-invalid] .#{$prefix}--list-box__selection {
right: rem(57px); // 33px + 1.5rem when invalid
}

.#{$prefix}--list-box__selection > svg {
fill: $icon-02;
}
Expand Down
4 changes: 0 additions & 4 deletions packages/components/src/components/list-box/_list-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -346,10 +346,6 @@ $list-box-menu-width: rem(300px);
}
}

.#{$prefix}--list-box[data-invalid] .#{$prefix}--list-box__selection {
right: rem(57px); // 33px + 1.5rem when invalid
}

.#{$prefix}--list-box__selection > svg {
fill: $icon-02;
}
Expand Down
10 changes: 5 additions & 5 deletions packages/react/src/components/ComboBox/ComboBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -305,11 +305,6 @@ export default class ComboBox extends React.Component {
disabled,
onClick: this.onToggleClick(isOpen),
})}>
{invalid && (
<WarningFilled16
className={`${prefix}--list-box__invalid-icon`}
/>
)}
<input
className={`${prefix}--text-input`}
aria-label={ariaLabel}
Expand All @@ -324,6 +319,11 @@ export default class ComboBox extends React.Component {
onKeyDown: this.handleOnInputKeyDown,
})}
/>
{invalid && (
<WarningFilled16
className={`${prefix}--list-box__invalid-icon`}
/>
)}
{inputValue && (
<ListBox.Selection
clearSelection={clearSelection}
Expand Down
11 changes: 4 additions & 7 deletions packages/react/src/components/ListBox/ListBoxSelection.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,10 @@ const ListBoxSelection = ({
selectionCount,
translateWithId: t,
}) => {
const className = cx(
`${prefix}--tag--filter`,
`${prefix}--list-box__selection`,
{
[`${prefix}--list-box__selection--multi`]: selectionCount,
}
);
const className = cx(`${prefix}--list-box__selection`, {
[`${prefix}--tag--filter`]: selectionCount,
[`${prefix}--list-box__selection--multi`]: selectionCount,
});
const handleOnClick = event => {
event.stopPropagation();
clearSelection(event);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ exports[`ListBoxField should render 1`] = `
translateWithId={[Function]}
>
<div
className="bx--tag--filter bx--list-box__selection"
className="bx--list-box__selection"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
Expand Down Expand Up @@ -81,7 +81,7 @@ exports[`ListBoxField should set \`aria-owns\` based when expanded 1`] = `
translateWithId={[Function]}
>
<div
className="bx--tag--filter bx--list-box__selection"
className="bx--list-box__selection"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports[`ListBoxSelection should render 1`] = `
}
>
<div
className="bx--tag--filter bx--list-box__selection"
className="bx--list-box__selection"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
Expand Down Expand Up @@ -98,7 +98,7 @@ exports[`ListBoxSelection should render 2`] = `
}
>
<div
className="bx--tag--filter bx--list-box__selection bx--list-box__selection--multi"
className="bx--list-box__selection bx--tag--filter bx--list-box__selection--multi"
onClick={[Function]}
onKeyDown={[Function]}
role="button"
Expand Down

0 comments on commit 62654dc

Please sign in to comment.