From 14df4586e43887c189118219da23e93ef9fd6c44 Mon Sep 17 00:00:00 2001 From: John Coburn Date: Fri, 8 Nov 2024 14:46:47 -0600 Subject: [PATCH 1/2] STCOM-1332 Selection should occupy the full width of its container. (#2385) * wrap Selection in full-width div * log changes * add position: relative to SelectionOuter CSS class --- CHANGELOG.md | 1 + lib/Selection/Selection.css | 5 +++++ lib/Selection/Selection.js | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b20fce4e0..a3dbe424a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ * `` - 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 `` 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) diff --git a/lib/Selection/Selection.css b/lib/Selection/Selection.css index 8b851b13c..25f699fa1 100644 --- a/lib/Selection/Selection.css +++ b/lib/Selection/Selection.css @@ -1,5 +1,10 @@ +.selectionOuter { + width: 100%; + position: relative; +} + .selectionRoot { position: relative; } diff --git a/lib/Selection/Selection.js b/lib/Selection/Selection.js index dc16cfacc..373152ef5 100644 --- a/lib/Selection/Selection.js +++ b/lib/Selection/Selection.js @@ -424,7 +424,7 @@ const Selection = ({ /* eslint-enable react-hooks/exhaustive-deps */ return ( -
+
{label && (