Vuetify: [Feature Request] v-expansion-panel-content style

Created on 28 Jan 2020  路  8Comments  路  Source: vuetifyjs/vuetify

Problem to solve

The component creates its own wrapper for the content. Therefore, it is not possible to define styles or classes for content.

Proposed solution

A good solution is to let the wrapper inherit the component styles.

invalid

Most helpful comment

All 8 comments

Good advice. But I'm not sure this is a good practice. Especially if I define existing styles. For example, padding.

Well inherit isn't either, you'd end up with double.

For me, English is not native, I definitely can not express myself.
Let's say we have a code like this:

<v-expansion-panel-content class="pa-0">
<span>test</span>
</v-expansion-panel-content>

This code in the browser will look like this:

<div class="v-expansion-panel-content pa-0">
<div class="v-expansion-panel-content__wrap">
<span>test</span>
</div>
</div>

And you need this:

<div class="v-expansion-panel-content">
<div class="v-expansion-panel-content__wrap pa-0">
<span>test</span>
</div>
</div>

Hi, Did you resolve this??
I am using slots to pass information into the tabs and all of the styling is being completely overwritten by the v-expansion-panel__wrap div.
Even my paragraph and text are not being styles by Vuetify classes.

Hi, Did you resolve this??

@alejandroguille deep selector, read up.

.v-expansion-panel-content >>> .v-expansion-panel-content__wrap { /*you style*/ }
Was this page helpful?
0 / 5 - 0 ratings

Related issues

YuqiaoS picture YuqiaoS  路  39Comments

johnleider picture johnleider  路  93Comments

noorzaie picture noorzaie  路  38Comments

Dev-Oli picture Dev-Oli  路  33Comments

lukef picture lukef  路  30Comments