Skip to content

Commit

Permalink
STCOM-1332 Selection should occupy the full width of its container. (#…
Browse files Browse the repository at this point in the history
…2385)

* wrap Selection in full-width div

* log changes

* add position: relative to SelectionOuter CSS class
  • Loading branch information
JohnC-80 authored Nov 8, 2024
1 parent 651f68c commit 14df458
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* `<RepeatableField>` - switch to MutationObserver to resolve focus-management issues. Refs STCOM-1372.
* Bump `stripes-react-hotkeys` to `v3.2.0` for compatibility with `findDOMNode()` changes. STCOM-1343.
* Pin `currency-codes` to `v2.1.0` to avoid duplicate entries in `v2.2.0`. Refs STCOM-1379.
* Wrap `<Selection>` in full-width div. Refs STCOM-1332.

## [12.2.0](https://github.com/folio-org/stripes-components/tree/v12.2.0) (2024-10-11)
[Full Changelog](https://github.com/folio-org/stripes-components/compare/v12.1.0...v12.2.0)
Expand Down
5 changes: 5 additions & 0 deletions lib/Selection/Selection.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@


.selectionOuter {
width: 100%;
position: relative;
}

.selectionRoot {
position: relative;
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Selection/Selection.js
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ const Selection = ({
/* eslint-enable react-hooks/exhaustive-deps */

return (
<div>
<div className={css.selectionOuter}>
{label && (
<Label
{...getLabelProps({
Expand Down

0 comments on commit 14df458

Please sign in to comment.