Fixed #3904 - Panel: Header accessibility issue

This commit is contained in:
Tuğçe Küçükoğlu 2023-04-26 14:18:19 +03:00
parent 0142b37aa5
commit 00bedf4181
2 changed files with 11 additions and 2 deletions

View file

@ -1,7 +1,7 @@
<template>
<div :class="containerClass" v-bind="ptm('root')">
<div class="p-panel-header" v-bind="ptm('header')">
<slot name="header">
<slot :id="ariaId + '_header'" name="header" class="p-panel-title">
<span v-if="header" :id="ariaId + '_header'" class="p-panel-title" v-bind="ptm('title')">{{ header }}</span>
</slot>
<div class="p-panel-icons" v-bind="ptm('icons')">