quasar icon indicating copy to clipboard operation
quasar copied to clipboard

QTree Node with background color for selection

Open papotte opened this issue 6 years ago • 2 comments

I would like to have background color for a selected item inside a tree, the same way one can set the text color for selected items. This can help usability when brand colors are darker.

papotte avatar Feb 26 '20 20:02 papotte

Closing this to track it in https://github.com/quasarframework/quasar/issues/6959

pdanpdan avatar May 05 '20 10:05 pdanpdan

I wanted this too... but workaround for now is styling such as

<style scoped>
::v-deep .q-tree__node--selected .q-tree__node-header-content {
  background-color: #e8f0fe;
}
</style>

or

<style scoped>
::v-deep .q-tree__node--selected {
  background-color: #e8f0fe; /* Light blue background */
  color: #202124; /* Default dark color for text and icons */
  border-radius: 10px; /* Rounded corners for a modern look */
}
</style>

glorat avatar Feb 05 '25 09:02 glorat