Skip to content

Commit

Permalink
wrap text in span to make it more accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
FireLemons committed Sep 30, 2023
1 parent 7162832 commit f39a333
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/assets/stylesheets/shared/notifier.scss
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@
margin: .25em;
margin-left: auto;
margin-right: 0;
padding: .5em
padding: .5em;

span {
display: inline
}
}

.failure-indicator {
Expand Down
3 changes: 2 additions & 1 deletion app/javascript/src/notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ class Notifier {
const newNotification =
$(
`<div class="${classPrefixMessage}-indicator">
${escapedMessage}
<span>${escapedMessage}</span>
${dismissButtonAsHTML}
</div>`
)
Expand All @@ -107,6 +107,7 @@ class Notifier {
})
}

console.log(newNotification)
return newNotification
}

Expand Down

0 comments on commit f39a333

Please sign in to comment.