Repository navigation
IBX-12720: Aligned the close button with the first text line in header-less modals - #2239
Open
GrabowskiM wants to merge 1 commit into
Open
GrabowskiM wants to merge 1 commit into
GrabowskiM wants to merge 1 commit into
Conversation
…r-less modals Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ibexa-workflow-automation-1
Bot
requested review from
OstafinL,
albozek,
alekmick,
dew326 and
tischsoic
and removed request for
a team
November 20, 2026 14:01
|
OstafinL
approved these changes
Nov 20, 2026
tischsoic
approved these changes
Nov 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description:
The close button in header-less modals was positioned with a fixed
top: 22px, tuned for the old typography (16px / 24px body text). b8c23c8 (IBX-12038, DS components) added the design-system global styles to the admin layout CSS, which switched the body text to 14px / 21px, so the X ended up ~4px below the first text line. The button swap toids-btnin the same commit was not the cause (with the old button and the new typography the offset would be ~5px).The button is now positioned relative to the body's top padding plus half of the text line height (
0.5lh) and centred withtranslateY(-50%). The body padding shares the same custom property (--ibexa-modal-body-padding-top), so the X stays aligned when the typography, the button size or the padding change.Applied to both header-less variants:
ibexa-modal--no-header– the reported case, used by ~19 modals across packages (product catalog, taxonomy, discounts, sections, languages, trash…).c-popup--no-header(sub-items bulk actions, tree-builder delete). This one was not visibly misaligned today; it gets the same treatment so it does not drift on the next typography change. It also getsdisplay: flex, so the inline icon is centred in the button instead of sitting on the text baseline.Measured offset between the X icon centre and the first text line centre:
For QA:
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.