Skip to content

Commit

Permalink
ConfirmationDialog: Remove header landmark (#2490)
Browse files Browse the repository at this point in the history
* Remove header landmark from ConfirmationDialog

* Create gold-rabbits-allow.md
  • Loading branch information
colebemis committed Oct 27, 2022
1 parent 4eee915 commit 776fb95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gold-rabbits-allow.md
@@ -0,0 +1,5 @@
---
"@primer/react": patch
---

ConfirmationDialog: Remove header landmark to improve accessibility
2 changes: 1 addition & 1 deletion src/Dialog/ConfirmationDialog.tsx
Expand Up @@ -40,7 +40,7 @@ export interface ConfirmationDialogProps {
confirmButtonType?: 'normal' | 'primary' | 'danger'
}

const StyledConfirmationHeader = styled.header`
const StyledConfirmationHeader = styled.div`
padding: ${get('space.2')};
display: flex;
flex-direction: row;
Expand Down

0 comments on commit 776fb95

Please sign in to comment.