data-grid: styling of selected cell->code
See original GitHub issueDescribe the bug
The <code>
tag is not styled correctly when inside a selected cell
To reproduce
The following code, select the second cell with the mouse:
<vscode-data-grid>
<vscode-data-grid-row row-type="header">
<vscode-data-grid-cell grid-column="1" cell-type="columnheader"> Name </vscode-data-grid-cell>
<vscode-data-grid-cell grid-column="2" cell-type="columnheader"> Type </vscode-data-grid-cell>
</vscode-data-grid-row>
<vscode-data-grid-row>
<vscode-data-grid-cell grid-column="1">
<a href="#">
y*
</a>
</vscode-data-grid-cell>
<vscode-data-grid-cell grid-column="2">
<code>number</code>
</vscode-data-grid-cell>
</vscode-data-grid-row>
</vscode-data-grid>
Expected behavior
Expected to have css styled applied to elements inside the cell
Screenshots
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:13 (3 by maintainers)
Top Results From Across the Web
DataGrid.CellStyle Property (System.Windows.Controls)
Gets or sets the style applied to all cells in the DataGrid. ... uses a trigger to change the Background color of a...
Read more >Change colour of single cell in DataGrid when selected ...
To apply a Style to all cells in a column, set the DataGridColumn.CellStyle property. This will take precedence over the DataGrid.CellStyle ...
Read more >Data Grid - Styling - MUI X
Styling cells This property allows to set a CSS class that is applied on every cell of the column it was defined. It...
Read more >How to Style Cells in Your .NET Datagrid Application - GrapeCity
To do so, you will have to re-assign the custom style to the desired cell in the “OwnerDrawCell” event. The OwnerDrawCell event and...
Read more >Cell Styles - React Data Grid
This has the following effect: cellStyle : All new styles are applied. If a new style is the same as an old style,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Perfect, that’s exactly what I had in mind 🙏
Great I’ll put this on my to-do list and will aim to have a PR ready by sometime next week.