Skip to content

Commit

Permalink
chore(modal): 代码规范
Browse files Browse the repository at this point in the history
  • Loading branch information
xiamiao committed Jun 3, 2024
1 parent 1219d4e commit 0f9582c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/ui/modal/src/use-modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const useModal = ({
if (Object.prototype.hasOwnProperty.call(props, 'zIndex')) {
style.zIndex = props.zIndex
}

return {
role: 'dialog',
'aria-modal': true,
Expand Down

0 comments on commit 0f9582c

Please sign in to comment.