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

ColorPicker static variant displays a large amount of vertical white space on small pallets #9131

Open
1 of 2 tasks
gabephudson opened this issue Jun 6, 2024 · 0 comments
Labels
has workaround Has reasonable workaround

Comments

@gabephudson
Copy link
Contributor

gabephudson commented Jun 6, 2024

Bug type

Component

Component name

ColorPicker

What happened?

When a ColorPicker configured as PickerVariant.Static is displayed with a small palette list, there is excessive whitespace (300px+) displayed below the color choices. These are caused by some relatively positioned divs in the markup. See repo example.

Expected behavior

The expected behavior would be that the height be dynamic and only take up as much vertical space as would be needed to display the color choices.

Reproduction link

https://try.mudblazor.com/snippet/GkQSOAughJtZONXq

Reproduction steps

See the reproduction link. The whitespace below the color selections should not exist.

Update: This can be mitigated by setting DisableColorField, DisablePreview, and DisableSliders to true. However, I believe these should default to "true" when in the static Varient.

Relevant log output

No response

Version (bug)

6.20.0

Version (working)

No response

What browsers are you seeing the problem on?

Firefox, Chrome, Edge, Safari

On which operating systems are you experiencing the issue?

Windows

Pull Request

  • I would like to do a Pull Request

Code of Conduct

  • I agree to follow this project's Code of Conduct
@danielchalmers danielchalmers added the has workaround Has reasonable workaround label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has workaround Has reasonable workaround
Projects
None yet
Development

No branches or pull requests

2 participants