Closed AriSorsko closed 1 year ago
Is there anything preventing this to be done only using CSS? Example:
.row:first-child {
font-weight: 500; //Or the CSS property needed.
}
It will look similar to:
of course that this will depends on designs requirements.
Where would that css live? It can't go in the table component itself without being applied to every table and styles aren't supported in pages, instead the "style" is just amended to the page as text:
At some point Topcoat should be updated to support styles in pages, but not without also supporting scoped styles + the deep selector or else the css will get really gnarly very quickly which is a whole different can of worms.
FYI, there's support for the style tag in the topcoat component and visualization parsers, and unit tests for it: https://github.com/snyk/topcoat-core/blob/main/tests/builder/parser/test_visualization_parser.py#L236-L244
Is there something different there than what's required here? Or is there some kind of bug? Might be an easy fix
What this does
Mehak needs a way to style the first row in table, this addresses that need in a general way.
Notes for the reviewer
To test:
Missed anything?
More information
Screenshots / GIFs
Visuals that may help the reviewer. Please add screenshots, including URL if applicable, for any front end change. GIFs are most welcome!