Skip to content

v0.11.1

Latest
Compare
Choose a tag to compare
@renatodeleao renatodeleao released this 08 Aug 13:54

The [workaround introduced on release v0.4.4](https://github.com/renatodeleao/a11y-vue-dialog/releases/tag/v0.4.4) came back to haunt me. Even though I could probably find another workaround not to produce a breaking change I decided to go the simpler way and fix it without workarounds.

The side-effect is now that this package requires a new rootRef binding besides the already mandatory dialogRef, and backdropRef can no longer be used as root as present in the documentation.

So new dialogs MUST HAVE the following structure

<a11y-vue-dialog #default="{ rootRef, dialogRef, backdropRef }">
   <div v-bind="rootRef.props">
       <div v-bind="backdropRef.props" v-on="backdropRef.listeners" /> <!-- optional -->
       <div v-bind="dialogRef.props" v-on="dialogRef.listeners">
       </div>
  </div>
</a11y-vue-dialog>

as usual, you're free to use any elements/components of your choice and everything else is optional (but not for long, since this is a11y dialog I'll be more strict and throw errors if, for example, the mandatory titleRef is not binding.