quasar icon indicating copy to clipboard operation
quasar copied to clipboard

[Request] QCollapsible add style for open item

Open krugerpl opened this issue 8 years ago • 4 comments

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 } } },

krugerpl avatar Aug 03 '18 07:08 krugerpl

Hi,

  1. q-collapsible-opened/closed is a class for popup-type collapsibles exclusively.
  2. Why do you need a class for this?

rstoenescu avatar Aug 06 '18 19:08 rstoenescu

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.

krugerpl avatar Aug 07 '18 09:08 krugerpl

'q-collapsible-opened/closed' it is. In future 0.17.7.

rstoenescu avatar Aug 07 '18 10:08 rstoenescu

Thank You Razvan!

krugerpl avatar Aug 07 '18 10:08 krugerpl