1

What would be the correct way to override the styling of the Office UI Fabric DetailsRow component?

I mean, this component does not expose anything like className in its props, so it does not seem to be possible to append any custom class names to the row's root element within an onRenderRow override, well, unless one fully re-writes the row rendering code.

Of course I could fall back to a dirty hack and use something like

ms-DetailsRow: hover {
    background-color: #cbcbcb !important;
}

in my own CSS file that is loaded after Office Fabric UI styles, but that does not look like a clean solution to me.

4

0 回答 0