coreui/coreui-vue

COffcanvas doesn't apply custom css styles, classes, ids for css styles

giquo opened this issue · 2 comments

giquo commented
  • Operating system and version: Windows 10 22H2
  • Browser: Firefox Dev Edition 122.0b5 (64-bit); Brave v1.61.109

When trying to use custom css as the documentation suggest https://coreui.io/vue/docs/components/offcanvas.html#css-variables

const offcanvasCreateStyle {
'--cui-offcanvas-width': '90%',
}
<COffcanvas
    backdrop="static"
    placement="end"
    :visible="isCreateCompanyOpen"
    :style="offcanvasCreateStyle"
    @hide="
      () => {
        isCreateCompanyOpen = !isCreateCompanyOpen
      }
    "
  >

I see no style applied, even using class="css-class" or id="css-id" on
I even used the inspector if I found something called with those names "css-class" or id="css-id" but found nothing
Tried even other custom classes but none of them are applying.

Fixed in @coreui/vue v4.10.2 / @coreui/vue-pro v4.11.3

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions