question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

data-grid: styling of selected cell->code

See original GitHub issue

Describe 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

grab186

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:13 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
daviddossettcommented, Oct 26, 2021

The debug view has code in the list view and we typically default to the list active foreground selection for that:

Perfect, that’s exactly what I had in mind 🙏

1reaction
hawkticehurstcommented, Oct 27, 2021

Great I’ll put this on my to-do list and will aim to have a PR ready by sometime next week.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found