You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The color field on the color picker is too big for my purposes and adjusting the css only visually works. There are two private values (_maxY/_maxX) which drive the calculation for getting color.
For example if I do:
.mud-picker-color-picker {
height: 125px;
}
Then visually the color field is half the size, but it only lets you select half the color range:
I should get a value of around #000000 but I am still in the grays.
Describe the solution you'd like
I would like at least for _maxY to become a public parameter so the height of the color field can be changed. This would require setting up the css so the .mud-picker-color-picker height would also change as that is hardcoded currently.
For a test, I made _maxY a public parameter, and hardcoded the css height to 125px:
Would we want to make both _maxY/_maxX public? When adjusting _maxX the color field is not centered so if we did make X public then we should probably change the css:
👋 Thanks for wanting to do a PR @digitaldirk !
We will try to merge all (non-breaking) bugfix PRs and we will deliberate the value of feature PRs for the community. But be warned that there is no guarantee that new features will be merged. If you want to be sure before investing the work please contact the team about your planned feature PR
Feature request type
Enhance component
Component name
MudColorPicker
Is your feature request related to a problem?
The color field on the color picker is too big for my purposes and adjusting the css only visually works. There are two private values (_maxY/_maxX) which drive the calculation for getting color.
For example if I do:
Then visually the color field is half the size, but it only lets you select half the color range:
I should get a value of around #000000 but I am still in the grays.
Describe the solution you'd like
I would like at least for _maxY to become a public parameter so the height of the color field can be changed. This would require setting up the css so the .mud-picker-color-picker height would also change as that is hardcoded currently.
For a test, I made _maxY a public parameter, and hardcoded the css height to 125px:
Would we want to make both _maxY/_maxX public? When adjusting _maxX the color field is not centered so if we did make X public then we should probably change the css:
Something like:
Have you seen this feature anywhere else?
No response
Describe alternatives you've considered
No response
Pull Request
Code of Conduct
The text was updated successfully, but these errors were encountered: