Skip to content

Conversation

@sissbruecker
Copy link
Contributor

Description

Currently all flex containers in upload file row use align-items: baseline, which makes it hard to align icons and buttons with the first text line. Changed icons and the commands container that contains buttons to use flex-start instead. Then applied the same solution we use for aligning icons and buttons with the first line of text in text area.

This is potentially a breaking change as it changes default styles, appearance, as well as the default height of the component (it gets a bit smaller).

Fixes #8768

Type of change

  • Bugfix

[part='commands'] {
display: flex;
align-items: baseline;
align-self: flex-start;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we should just change it to use align-items: flex-start everywhere. Using baseline as a default doesn't seem particularly useful for the elements that the upload file row contains.

Copy link
Contributor

Choose a reason for hiding this comment

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

It occurred to me that the whole row would be better implemented as a css grid... which we could definitely do in V25, and possibly in a minor.

@sissbruecker sissbruecker requested review from jouni and rolfsmeds April 11, 2025 08:39
@sissbruecker
Copy link
Contributor Author

@rolfsmeds Please take a look, I'm not sure if the changes are acceptable as a bugfix for a patch version.

Copy link
Member

@jouni jouni left a comment

Choose a reason for hiding this comment

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

As far as I know, start equals flex-start. It’s just shorter, less bytes.

Co-authored-by: Jouni Koivuviita <[email protected]>
@sonarqubecloud
Copy link

@rolfsmeds
Copy link
Contributor

As far as I know, start equals flex-start. It’s just shorter, less bytes.

Not quite: flex-start is unaffected by row-reverse while start is flipped by it. But it doesn't matter here of course.

@jouni
Copy link
Member

jouni commented Apr 23, 2025

Rolf: oh, that’s good to know. Thanks!

Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

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

If we want to proceed with the change, let's rebase the PR to use Lumo CSS.

@web-padawan
Copy link
Member

Closing in favor of #10059 which changed upload-file to use CSS grid also in Lumo.

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.

Icons look misaligned for a simple upload status row

5 participants