Grid Styling - Overwrite style of ag-grid

后端 未结 3 637
粉色の甜心
粉色の甜心 2020-12-04 02:24

I have the following style:

.ag-theme-fresh .ag-row-selected {
    background-color: #bde2e5; 
}`

It comes from a css style file of a theme

3条回答
  •  时光说笑
    2020-12-04 02:58

    You can also apply the styles globally and if you do so it will override the styles for all your ag-Grid components. This might not be an option if you are trying to style the components individually, but it's a good way to give a global base style override.

    Also, you should try to use more specific selectors instead of using important.

    Here is an example:

    .ag-theme-alpine > .ag-row.ag-row-selected {
      background : red;
    }
    

提交回复
热议问题