nicolium: attempts at modal accessibility

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2026-03-05 11:55:37 +01:00
parent a596585339
commit 40aa74fcb5
2 changed files with 8 additions and 2 deletions

View File

@ -255,7 +255,12 @@ const ModalRoot: React.FC<IModalRoot> = ({ children, onCancel, onClose, type, mo
onClick={handleOnClose}
/>
<div role='dialog' className='⁂-modal-root__container'>
<div
role={type === 'CONFIRM' ? 'alertdialog' : 'dialog'}
className='⁂-modal-root__container'
aria-modal
aria-labelledby='modal-title'
>
{children}
</div>
</>

View File

@ -358,7 +358,8 @@ div[data-viewport-type='window']:has(.⁂-empty-message) {
@apply flex w-full items-center gap-2;
}
h3 {
h3,
h2 {
@apply grow text-lg font-bold leading-6 text-gray-900 dark:text-white;
}