We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae86d3 commit 4f19d4aCopy full SHA for 4f19d4a
packages/coreui-vue/src/components/modal/CModal.ts
@@ -230,13 +230,15 @@ const CModal = defineComponent({
230
h(
231
'div',
232
{
233
+ ...attrs,
234
class: [
235
'modal',
236
237
['fade']: props.transition,
238
},
239
attrs.class,
240
],
241
+ ...(visible.value ? { 'aria-modal': true, role: 'dialog' } : { 'aria-hidden': 'true' }),
242
ref: modalRef,
243
244
@@ -253,7 +255,6 @@ const CModal = defineComponent({
253
255
[`modal-${props.size}`]: props.size,
254
256
257
- role: 'dialog',
258
259
260
0 commit comments