Skip to content

Conversation

@tf
Copy link
Member

@tf tf commented Jan 7, 2026

REDMINE-21191

@tf tf added this to the v17.2 milestone Jan 7, 2026
@tf tf force-pushed the padding-frontend branch 5 times, most recently from 558c05a to a7641cf Compare January 8, 2026 17:30
tf added 4 commits January 9, 2026 11:25
A callable can be passed to base defaults on options set by theme.

REDMINE-21191
Can be used to use different default section padding per appearance.

REDMINE-21191
@tf tf force-pushed the padding-frontend branch 4 times, most recently from 9d4328b to 3b72c26 Compare January 9, 2026 12:11
tf added 13 commits January 9, 2026 13:17
Apply theme default padding to foreground to replace removed box
margins. Also move indicators to prevent padding indcator from being
hidden behind navigation.

REDMINE-21191
Ensure padding can be forced to make room for the insert element
button even when custom padding is set.

REDMINE-21191
When the motif area is exposed, the Foreground component now
suppresses its top padding to avoid double spacing. This ensures
consistent visual appearance when the backdrop motif area is
configured to push content down.

REDMINE-21191
Only if portrait asset is present and opt-out has not been set.

REDMINE-21191
Force initialization of the I18n backend before tests run so that
translations from locale files are loaded first. Fake translations
set via the translation helper then override those defaults instead
of being overwritten when I18n.t triggers lazy loading.

REDMINE-21191
Make defaults match previously hard-coded paddings for different
appearance options.

REDMINE-21191
Section padding should exclusively control spacing above the first
content element. This removes the content element's own top margin
when it's at the start of a section (shadow/transparent appearance).
Cards appearance keeps the margin since elements are inside the card
and section padding is outside.

REDMINE-21191
Content elements like textBlock and question have internal top margins
that extend beyond the default 1em content element margin. This allows
content elements to specify their preferred top margin via the new
defaultMarginTop option, enabling these custom margins to also be
trimmed at the beginning of sections where section padding should
control spacing exclusively.

REDMINE-21191
When the motif area is exposed and content is padded down, the first
content element box should keep its top margin rather than suppressing
it. The space above comes from the motif area padding, not a manually
configured section padding. Keep existing spacing between motif and
box.

REDMINE-21191
Verifies that box wrappers update their margin when isContentPadded
changes dynamically. This required fixing the Layout memo comparison
to include isContentPadded, and enhancing the useMotifAreaState mock
to support triggering re-renders.

Extracts margin suppression styles to a shared CSS module for easier
testing across different box wrapper implementations.

REDMINE-21191
Used to collapse with box margin.

REDMINE-21191
@tf tf force-pushed the padding-frontend branch from 3b72c26 to 5f0a554 Compare January 9, 2026 12:19
@tf tf merged commit d0e01f7 into codevise:master Jan 12, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant