Skip to content

fix: align icons and buttons in upload file row #8931

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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

@@ -123,6 +123,7 @@ const uploadFile = css`
[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.

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
2 participants