Skip to content

Conversation

@skjnldsv
Copy link
Contributor

@skjnldsv skjnldsv commented May 2, 2025

Parent is flex, but not the intermediate span
See the folder icon:

Before

2025-05-02_08-48_1

After

2025-05-02_08-48

Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews design Design, UX, interface and interaction design labels May 2, 2025
@skjnldsv skjnldsv requested a review from susnux May 2, 2025 06:50
@skjnldsv skjnldsv self-assigned this May 2, 2025
Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv requested a review from susnux May 2, 2025 09:01
@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 2, 2025

/backport to stable8

@skjnldsv skjnldsv enabled auto-merge May 2, 2025 09:11
@skjnldsv skjnldsv requested review from ShGKme and artonge May 2, 2025 09:11
Comment on lines +289 to +291
span {
line-height: 0;
}
Copy link
Contributor

@ShGKme ShGKme May 2, 2025

Choose a reason for hiding this comment

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

I'd say that the root issue is that this span is a text (inline) element, which applies the line-height.

Instead of overriding text height to 0 of a non-text text element, I'd propose to make it a block or inline-block element.

I am unsure line-height won't be overridden by some a11y extension or have other browser-specific issues.

So I'd consider it a more risky solution than making it a non-text element.

Copy link
Contributor

Choose a reason for hiding this comment

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

Block does not help as it still considers the line height.
Either set line height like here or use either grid (makes no sense) or flex which will fit content.

Copy link
Contributor

Choose a reason for hiding this comment

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

Block does not help as it still considers the line height.

Hmm, indeed

flex which will fit content.

Yep, flex/inline-flex/grid works fine.

Or display: contents

makes no sense

IMO, it makes more sense, as it sets a more relevant box type, than changing line-height of non-text 👀

Copy link
Contributor

Choose a reason for hiding this comment

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

Or display: contents

This seems to be the ideal solution, totally forgot about that.

Comment on lines +289 to +291
span {
line-height: 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Block does not help as it still considers the line height.
Either set line height like here or use either grid (makes no sense) or flex which will fit content.

Copy link
Contributor

@ShGKme ShGKme left a comment

Choose a reason for hiding this comment

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

Non blocking

@skjnldsv skjnldsv merged commit f0bee82 into main May 5, 2025
25 checks passed
@skjnldsv skjnldsv deleted the skjnldsv-patch-1 branch May 5, 2025 11:17
@skjnldsv
Copy link
Contributor Author

skjnldsv commented May 5, 2025

/backport to stable8

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

Labels

3. to review Waiting for reviews bug Something isn't working design Design, UX, interface and interaction design

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants