-
I wanted to make some small CSS changes like altering the shade of green on the status circle and making column headers bold to better match the application theme. I've been reading about the shadow root but I'm definitely no expert in it. I see this issue but that looks like it's about creating your own component. I'm wondering what's the best pattern for injecting custom styles? Looking at the theme css files, those don't seem to cover elements like column header text styles but maybe I just wasn't able to find them. My guess is it's a bit more complicated since editing styles via dev tools has no effect. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
The datagrid plugin is just a regular HTML
You may need to be aggressive with specificity to override the rules provided by default. Perspective adds several of metadata classes to the table elements during it's render phase as well, but these are not documented. The |
Beta Was this translation helpful? Give feedback.
-
Somewhat related (and please forgive my JS/CSS ignorance), but is it possible to hide certain tools from the status bar? Suppose I wanted to disable the |
Beta Was this translation helpful? Give feedback.
-
I would like to modify the cell’s style based on perspective, such as adding up and down arrows inside the cell to change the data. Is there any way to achieve this? Thank you very much. |
Beta Was this translation helpful? Give feedback.
The datagrid plugin is just a regular HTML
<table>
in the light DOM (virtualized viaregular-table
), you can style it with regular CSS in the document:You may need to be aggressive with specificity to override the rules provided by default.
Perspective adds several of metadata classes to the table elements during it's render phase as well, but these are not documented. The
perspective-viewer-datagrd
package CSS source has the default styles and some examples of things like e.g. column type matching.