1

I have

an expanded-row-table from Vuetify, it came with box shadow on the row while expanded

enter image description here

I want

to remove the box-shadow, I checked the console-style tab, I see

enter image description here

so I decided to add this code in the bottom of my show.vue

.v-data-table > .v-data-table__wrapper tbody tr.v-data-table__expanded__content {
    box-shadow: none !important;
}

I don't see any effect, shadow still there.

code-8
  • 54,650
  • 106
  • 352
  • 604
  • 1
    You maybe need a [deep selector](https://stackoverflow.com/a/55368933/8816585)? If you cannot see your `box-shadow: none` CSS property, something is missing in terms of scope/reach to the given component. – kissu Apr 05 '22 at 16:48
  • 1
    You're correct, it's working now. – code-8 Apr 05 '22 at 17:38

2 Answers2

2

As explained in this answer, you may use deep selectors.

In your case, this seems to work

>>> .v-data-table > .v-data-table__wrapper tbody tr.v-data-table__expanded__content {
  box-shadow: none !important;
}
kissu
  • 40,416
  • 14
  • 65
  • 133
0

Can you try to put it in a style tag that is not scoped (i.e without the scoped).

Like

<style>
 .v-data-table > .v-data-table__wrapper tbody tr.v-data-table__expanded__content {
   box-shadow: none !important;
 }
</style>