Theming select menu and filters #876
Replies: 8 comments
-
|
Bump. I have also encountered this issue in the past |
Beta Was this translation helpful? Give feedback.
-
|
hi @MattTheCuber
By the way you can use vitepress components inside of the grid too, we've built a lot of applications this way. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @m2a2x, Thank you for the help. I tried adding the Also, can you describe how the filter panel was updated to allow theming? |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
That worked, thank you! FYI, here is the CSS I used if anyone else wants to theme these components: .select-css {
background-color: rgb(var(--v-theme-surface));
background-image: none;
color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity));
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
}
.select-css:focus {
color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity));
}
revogr-filter-panel input[type='text'] {
color: rgba(var(--v-theme-on-background), var(--v-high-emphasis-opacity)) !important;
background-color: rgb(var(--v-theme-surface-light)) !important;
}
.revo-dropdown-list .dropdown-inner {
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !important;
background-color: rgb(var(--v-theme-surface)) !important;
} |
Beta Was this translation helpful? Give feedback.
-
|
@MattTheCuber In the future there is a plan to provide revogrid with full theme support, just allow some vars and set them through js, but it's a long term plan |
Beta Was this translation helpful? Give feedback.
-
|
Great! I didn't care too much about specific theming colors, I just wanted the drop downs and filter menu to match the RevoGrid theme (dark/light). |
Beta Was this translation helpful? Give feedback.
-
|
If anyone wants it, this is what I used for the date column type: .duet-date,
.duet-date__select-label,
.duet-date__table,
.duet-date__day[aria-pressed='false']:not(:active) {
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !important;
}
.duet-date__input {
color: rgba(var(--v-theme-on-surface), var(--v-high-emphasis-opacity)) !important;
background: rgb(var(--v-theme-surface)) !important;
}
.duet-date__dialog-content {
background: rgb(var(--v-theme-surface)) !important;
}
.duet-date select {
background-color: rgb(var(--v-theme-surface)) !important;
}
.duet-date__toggle,
.duet-date__prev,
.duet-date__next {
background: rgb(var(--v-theme-secondary)) !important;
}Note: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
This issue is for https://github.com/revolist/revogrid-column-select and this repo.
Currently, in dark theme, select menus and filtering look quite poor. You can see this by going to the official demo: https://rv-grid.com/demo/
Is there a easy way to style these depending on the theme? Currently we are using Vuetify and using the theme variables like this:
However, we are unable to themed styles the dropdown because it is stuck in the root body and not instead of any Vuetify containers.
Beta Was this translation helpful? Give feedback.
All reactions