Skip to content
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

storage: StorageBarMenu dropdown should not always be plain #19248

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

leomoty
Copy link
Contributor

@leomoty leomoty commented Aug 27, 2023

So this partially contributes to #19241

How it looks without plain:

image

image

How it looked before:

image

image


I am not entirely sure why plain was working like that in light mode? but the dark mode was correct (no background/border).

Also the side effect of this change is now that it is using the proper width / slimmer profile as shown by patternfly docs.

@martinpitt
Copy link
Member

Thanks! @mvollmer , can you have a look ? I started the f38/storage tests to get the updated pixels

@mvollmer
Copy link
Member

I can't say why we used isPlain to begin with, tbh... probably to get the kebab variant to look right.

Removing isPlain has two problems:

  • The narrower button looks out of place with regard to toher buttons:

image

  • The kebab version looks wrong:

image

@mvollmer
Copy link
Member

mvollmer commented Aug 28, 2023

I am surprised that even with isPlain we do get the blue background. Hmm.

@leomoty
Copy link
Contributor Author

leomoty commented Aug 28, 2023

Let me know if the proposed css change is acceptable, it uses the same padding as present elsewhere

@leomoty leomoty changed the title storage: StorageBarMenu dropdown should not be plain storage: StorageBarMenu dropdown should not always be plain Aug 28, 2023
@leomoty leomoty requested a review from mvollmer August 28, 2023 11:18
@mvollmer
Copy link
Member

Let me know if the proposed css change is acceptable, it uses the same padding as present elsewhere

I can't say I understand how Patternfly wants this to work... nor do I care about CSS very much, so I am fine with this. :-)

mvollmer
mvollmer previously approved these changes Aug 28, 2023
Copy link
Member

@mvollmer mvollmer left a comment

Choose a reason for hiding this comment

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

Result looks good to me.

@mvollmer
Copy link
Member

Thanks! Let's run the tests!

@leomoty
Copy link
Contributor Author

leomoty commented Aug 28, 2023

@mvollmer seems like we have pixel tests changes, can you do those for me? I don't have the proper setup to get the VMs running at the moment

Copy link
Member

@martinpitt martinpitt left a comment

Choose a reason for hiding this comment

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

Thanks @leomoty ! I pushed the updated pixel test, it looks great and confirms the fix.

@martinpitt
Copy link
Member

Only re-triggering the f38 tests (pixels), the rest already succeeded in the previous round.

@martinpitt martinpitt merged commit e559b73 into cockpit-project:main Aug 29, 2023
33 checks passed
@leomoty leomoty deleted the fix-storage-dropdown branch August 29, 2023 11:08
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.

3 participants