Skip to content

Commit

Permalink
Safelist ARIA attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
thewebartisan7 committed Mar 7, 2023
1 parent 4bb467f commit 67f554e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ <h1 class="display-1 fw-bold mb-4">Demo</h1>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- /.modal-header -->
<div class="modal-body">
Expand Down
2 changes: 1 addition & 1 deletion docs/docs.html
Original file line number Diff line number Diff line change
Expand Up @@ -1579,7 +1579,7 @@ <h2 id="migration" tabindex="-1">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- /.modal-header -->
<div class="modal-body">
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ <h1 class="display-1 fw-bold mb-4">Build the web with PostHTML</h1>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- /.modal-header -->
<div class="modal-body">
Expand Down
2 changes: 1 addition & 1 deletion docs/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ <h1>Child yield</h1>
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="modalWithComponentsLabel">Changelog</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<!-- /.modal-header -->
<div class="modal-body">
Expand Down
3 changes: 2 additions & 1 deletion src/valid-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -3551,7 +3551,8 @@ module.exports = {
// Add additional attributes, use '*' in the end to check by startsWith
// Example: 'start-with-*'
safelistAttributes: [
'data-*'
'data-*',
'aria-*'
],

// Skip this attributes
Expand Down

0 comments on commit 67f554e

Please sign in to comment.