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
Is your feature request related to a problem? Please describe.
In my app i'd like to use a Select dropdown element on a surface that uses the primary color from the Material color palette. While out of the box it seems to be designed for the surface color as background, i'd like to change the color to something different (e.g. primary and on-primary).
Describe the solution you'd like
A nice solution would be by providing some variables that the color and background-color values would be derived from.
Describe alternatives you've considered
In the style section of the Svelte component where i am using the Select component from SMUI, i tried a wild mixture of :global selectors for .mdc-select and related classes. I copied those lines from Chromium dev tools from the related elements, used color-mix to apply transparency (that is given by Material design itself i guess?) to my variables. It is hard to get it right because there are loads of classes and i think i am still missing some classes...
Is your feature request related to a problem? Please describe.
In my app i'd like to use a Select dropdown element on a surface that uses the
primary
color from the Material color palette. While out of the box it seems to be designed for thesurface
color as background, i'd like to change the color to something different (e.g.primary
andon-primary
).Describe the solution you'd like
A nice solution would be by providing some variables that the color and background-color values would be derived from.
Describe alternatives you've considered
In the
style
section of the Svelte component where i am using theSelect
component from SMUI, i tried a wild mixture of:global
selectors for.mdc-select
and related classes. I copied those lines from Chromium dev tools from the related elements, usedcolor-mix
to apply transparency (that is given by Material design itself i guess?) to my variables. It is hard to get it right because there are loads of classes and i think i am still missing some classes...Additional context
My app is using SMUI@7 and Svelte@4.
Any tips on how to achieve a clean solution for setting a different foreground-background color set for the Select element is welcome.
The text was updated successfully, but these errors were encountered: