Skip to content

Conversation

@tf
Copy link
Member

@tf tf commented Jan 7, 2026

REDMINE-21191

tf added 3 commits January 7, 2026 15:46
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 added this to the v17.2 milestone Jan 7, 2026
@tf tf force-pushed the padding-frontend branch 3 times, most recently from 7324a6a to 36c8ada Compare January 8, 2026 08:31
tf added 12 commits January 8, 2026 17:50
Use foreground margin to move foreground below navigation widgets to
make paddings available for section paddings. Also move indicators to
prevent padding indcator from being hidden behind navigation. Contain
foreground margin inside top level section child div to let backdrop
extend behind navigation.

Apply theme default padding to foreground to replace removed box
margins.

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
Used to collapse with box margin.

REDMINE-21191
@tf tf force-pushed the padding-frontend branch 2 times, most recently from 558c05a to a7641cf Compare January 8, 2026 17:30
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