[Request] QCollapsible add style for open item
QCollapsible should receive q-collapsible-opened class for open state not only when prop popup is present. right now:
computed: { classes () { return { 'q-collapsible-opened': this.popup && this.showing, 'q-collapsible-closed': this.popup && !this.showing, 'q-collapsible-cursor-pointer': !this.iconToggle, 'q-item-dark': this.dark, 'q-item-separator': this.separator, 'q-item-inset-separator': this.insetSeparator, disabled: this.disable } } },
after fix:
computed: { classes () { return { 'q-collapsible-opened': this.showing, 'q-collapsible-closed': !this.showing, 'q-collapsible-cursor-pointer': !this.iconToggle, 'q-item-dark': this.dark, 'q-item-separator': this.separator, 'q-item-inset-separator': this.insetSeparator, disabled: this.disable } } },
Hi,
- q-collapsible-opened/closed is a class for popup-type collapsibles exclusively.
- Why do you need a class for this?
I need add a style for opened item (change background color). I am using q-collapsible as accordion. I don't want popup effect. I just want to style opened item for visibility.
Maybe we can change styles for q-collapsible-opened/closed like this? ;
computed: { classes () { return { 'q-collapsible-popup-opened': this.popup && this.showing, 'q-collapsible-popup-closed': this.popup && !this.showing, 'q-collapsible-opened': this.showing, 'q-collapsible-closed': !this.showing, 'q-collapsible-cursor-pointer': !this.iconToggle, 'q-item-dark': this.dark, 'q-item-separator': this.separator, 'q-item-inset-separator': this.insetSeparator, disabled: this.disable } } },
Please look at this link. https://vuetifyjs.com/en/components/expansion-panels
Vuetify panels have "v-expansion-panel__container--active" class added to normal items and v-expansion-panel--popout is added to parent element if popup mode is used.
'q-collapsible-opened/closed' it is. In future 0.17.7.
Thank You Razvan!