use custom elements instead of adding css classes for selectors

This commit is contained in:
Danny Coates 2019-01-10 16:22:40 -08:00
parent 742b97cb4b
commit f402011c82
No known key found for this signature in database
GPG key ID: 4C442633C62E00CB
9 changed files with 38 additions and 34 deletions

View file

@ -62,18 +62,18 @@ class Account extends Component {
const translate = this.state.translate;
if (!this.local.loggedIn) {
return html`
<div>
<send-account>
<button
class="p-2 border rounded border-white text-white hover:bg-white hover:text-blue md:text-blue md:border-blue md:hover:text-white md:hover:bg-blue"
onclick="${e => this.login(e)}"
>
${translate('signInMenuOption')}
</button>
</div>
</send-account>
`;
}
return html`
<div class="relative h-8">
<send-account class="relative h-8">
<input
type="image"
alt="${user.email}"
@ -97,7 +97,7 @@ class Account extends Component {
</a>
</li>
</ul>
</div>
</send-account>
`;
}
}