Skip to content

fix(brandfolder): widen asset picker dialog - #11401

Draft
William Utterback (wjutterback) wants to merge 1 commit into
contentful:masterfrom
wjutterback:fix/brandfolder-picker-viewport
Draft

William Utterback (wjutterback) wants to merge 1 commit into
contentful:masterfrom
wjutterback:fix/brandfolder-picker-viewport

Conversation

@wjutterback

Copy link
Copy Markdown

Purpose

The Brandfolder picker is cramped even on a large screen. Both the Contentful dialog and the iframe inside it are fixed at 400px wide, which makes browsing assets harder than it needs to be.

Approach

Use the SDK's fullWidth dialog option and let the iframe fill it. The dialog also uses allowHeightOverflow: false so Contentful can constrain it to the viewport. The iframe keeps its existing 650px height and auto-resizer, with a descriptive title added for accessibility.

Authentication and asset selection are unchanged. No shared DAM code or dependencies are touched.

Testing steps

The app build, Prettier, and scoped ESLint checks pass. Six supplemental local tests cover the dialog options, iframe attributes, selection mapping, and cancellation; these run outside the repository's test suite. Browser checks with a placeholder picker covered narrow and wide viewports and keyboard selection.

Authenticated Brandfolder testing inside Contentful is still pending. Before merging:

  1. Open the picker from a JSON object field in a development space and check that it fills the wider dialog.
  2. Try a short viewport (around 600px high) and a narrow window. Check that the close control and Place button remain reachable, including by keyboard.
  3. Place an asset, reopen the entry, and confirm it persists. Reopen the picker and check that cancelling or pressing Escape leaves the existing selection alone.

Breaking Changes

None intended. Stored asset data is unchanged.

Dependencies and/or References

Deployment

Normal Brandfolder frontend release. No installation or content-model changes needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant