1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 02:48:51 +00:00

[a11y] system notification: refactored it & added support for keyboard access

This commit is contained in:
llj
2021-09-23 11:43:45 +08:00
parent dd1fd746e8
commit 6c5d5b8b1c
2 changed files with 12 additions and 19 deletions

View File

@@ -41,9 +41,9 @@ class SystemNotification extends React.Component {
}
return (
<div id="info-bar">
<p id="info-bar-info"><span dangerouslySetInnerHTML={{__html: curNoteMsg}}></span></p>
<span className="close sf2-icon-x1" title={gettext('Close')} onClick={this.close}></span>
<div id="info-bar" className="d-flex justify-content-between">
<p id="info-bar-info" className="m-0" dangerouslySetInnerHTML={{__html: curNoteMsg}}></p>
<button className="close sf2-icon-x1" title={gettext('Close')} aria-label={gettext('Close')} onClick={this.close}></button>
</div>
);
}