Skip to content

Commit

Permalink
Merge branch 'master' into STCOM-1373
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnC-80 authored Oct 25, 2024
2 parents 94e0d14 + 2f72ee3 commit 8bc8d21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
* Properly pass `readOnly` prop to `<RadioButton>`'s internally rendered `<Label>`. Refs STCOM-1367.
* `TextArea` - move focus to the field after clearing the field by clicking on the `x` icon. Refs STCOM-1369.
* Change `Repeatable field` focus behaviour. Refs STCOM-1341.
* Fix `<Selection>` bug with option list closing when scrollbar is used. Refs STCOM-1371.
* `<Selection>` - fix bug handling empty string options/values. Refs STCOM-1373.

## [12.1.0](https://github.com/folio-org/stripes-components/tree/v12.1.0) (2024-03-12)
Expand Down
10 changes: 9 additions & 1 deletion lib/Selection/Selection.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,18 @@

.selectionList {
list-style: none;
padding: 4px;
padding: 2px 4px;
border-top: 2px solid transparent;
border-bottom: 2px solid transparent;
margin-bottom: 0;
overflow: auto;
position: relative;
outline: 0;

&:focus {
border-top-color: var(--primary);
border-bottom-color: var(--primary);
}
}

.selectListSection {
Expand Down
1 change: 1 addition & 0 deletions lib/Selection/SelectionList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const SelectionList = ({
})}
style={{ maxHeight: listMaxHeight }}
className={css.selectionList}
tabIndex="-1"
>
{ isOpen && renderOptions()}
</ul>
Expand Down

0 comments on commit 8bc8d21

Please sign in to comment.