mirror of
https://git.sr.ht/~emersion/gamja
synced 2025-04-02 02:00:04 -04:00
Use semantically more correct elements for error bubble
This commit is contained in:
parent
724d7318cf
commit
1ea3180f5b
2 changed files with 9 additions and 6 deletions
|
@ -1231,11 +1231,11 @@ export default class App extends Component {
|
|||
let error = null;
|
||||
if (this.state.error) {
|
||||
error = html`
|
||||
<p id="error-msg">
|
||||
<div id="error-msg">
|
||||
${this.state.error}
|
||||
${" "}
|
||||
<a href="#" onClick=${this.dismissError}>×</a>
|
||||
</p>
|
||||
<button onClick=${this.dismissError}>×</button>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
|
|
|
@ -460,9 +460,12 @@ details summary[role="button"] {
|
|||
margin: 0.5rem;
|
||||
}
|
||||
|
||||
#error-msg a {
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
#error-msg button {
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font-size: inherit;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.error-text {
|
||||
|
|
Loading…
Add table
Reference in a new issue