简体   繁体   中英

How to change Ag Grid border color?

Does anyone know is it possible to change Ag Grid component border color? I was trying to do remove it with styling ag-theme-alphine

<div className="ag-theme-alpine" style={{ height: '100%', borderColor: 'white', fontSize: '1vw',}}>

But it doesn't work at all. Also i tried to do it with css, but again no luck.

.ag-root-wrapper {
    border: solid 1px;
    border-color: red;
    border-color: var(--ag-border-color, #babfc7);
}

Use css !important to override theme default styles.

See bellow:

 .ag-root-wrapper { border: solid 1px; border-color: var(--ag-border-color, #babfc7) !important; }

I changed border color of Ag-Grid component with CSS, it works only when '!important' is used.

.ag-root-wrapper {
    border: solid 1px;
    border-color: var(--ag-border-color, #fffff) !important;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM