Skip to content

fix(web,web-react): dropdown placement default in context and modal placement demo#2553

Merged
crishpeen merged 1 commit intorefactor/DS-2398-react-standalone-form-fieldsfrom
fix/dropdown-placement-context-and-modal-demo
Mar 24, 2026
Merged

fix(web,web-react): dropdown placement default in context and modal placement demo#2553
crishpeen merged 1 commit intorefactor/DS-2398-react-standalone-form-fieldsfrom
fix/dropdown-placement-context-and-modal-demo

Conversation

@crishpeen
Copy link
Copy Markdown
Member

Description

  • web-react: Resolve default placement in useDropdownContext when the provider omits it (React context replaces createContext defaults, so placement-bottom-start was missing on the popover).
  • web-react: Remove data-spirit-placement from useDropdownPopover content props; placement is conveyed via placement-* classes only.
  • web: Add placement-bottom-start to the modal-with-dropdown demo popover for placement helper SCSS.

Additional context

Targets branch refactor/DS-2398-react-standalone-form-fields.

Issue reference

https://jira.almacareer.tech/browse/DS-2398

@github-actions github-actions bot added the bug Something isn't working label Mar 20, 2026
@crishpeen crishpeen force-pushed the fix/dropdown-placement-context-and-modal-demo branch from ba4a5b6 to 488558d Compare March 20, 2026 06:52
@crishpeen crishpeen added the run-visual-tests Runs visual regression testing on this PR label Mar 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Copy link
Copy Markdown
Contributor

@dlouhak dlouhak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…lacement demo

- web-react: resolve placement in useDropdownContext; stop setting data-spirit-placement on popover
- web: add placement-bottom-start on modal dropdown popover demo
@crishpeen crishpeen force-pushed the fix/dropdown-placement-context-and-modal-demo branch from 488558d to b4bbd87 Compare March 24, 2026 08:10
@github-actions
Copy link
Copy Markdown
Contributor

@crishpeen crishpeen merged commit 278c5ba into refactor/DS-2398-react-standalone-form-fields Mar 24, 2026
27 of 28 checks passed
@crishpeen crishpeen deleted the fix/dropdown-placement-context-and-modal-demo branch March 24, 2026 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working run-visual-tests Runs visual regression testing on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants