Skip to content

Commit

Permalink
static/alert: add div and classes for meinBerlin
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas.darley authored and hom3mad3 committed Nov 13, 2024
1 parent d00d656 commit 79867f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions adhocracy4/static/Alert.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ const Alert = ({ type, alertAttribute, message, onClick, timeInMs }) => {
aria-atomic="true"
aria-live={alertAttribute}
>
<div className="container">
{message}
<div className="container a4-alert__container">
<div className="a4-alert__content">
{message}
</div>
<button className="alert__close" title={closeTag} onClick={onClick}>
<i className="fa fa-times" aria-label={closeTag} />
</button>
Expand Down
4 changes: 4 additions & 0 deletions changelog/8483.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## Changed

- added a new div to `Alert.jsx` with the class name `a4-alert__content` to keep semantic structure consistent with mein berlin
- added a new class called `a4-alert__container` to `Alert.jsx`

0 comments on commit 79867f6

Please sign in to comment.