Skip to content

Commit

Permalink
Autosuggest: Ensure dropdown content is left aligned
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Nov 1, 2024
1 parent eb4197c commit af33534
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .changeset/yellow-frogs-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'braid-design-system': patch
---

---
updated:
- Autosuggest
---

**Autosuggest**: Ensure content is left aligned

Applies left alignment to `Autosuggest` dropdown content to ensure consistent alignment, even when inside centered layout containers.
Original file line number Diff line number Diff line change
Expand Up @@ -766,6 +766,7 @@ export const Autosuggest = forwardRef(function <Value>(
{/* MenuRef gets forwarded down to UL by RemoveScroll by `forwardProps`. */}
<RemoveScroll ref={menuRef} enabled={isOpen} forwardProps>
<Box
textAlign="left"
component="ul"
display={isOpen ? 'block' : 'none'}
position="absolute"
Expand Down

0 comments on commit af33534

Please sign in to comment.