-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avatar button Issue 18 #55
Conversation
$image.addEventListener('mouseover', () => ($image.src = imageHover)); | ||
$image.addEventListener('mouseout', () => ($image.src = imageOriginal)); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pq precisou usar JS e não apenas um CSS?
.plus { | ||
padding: 18px; | ||
border-radius: 9999px; | ||
border: 1.5px solid #fff; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pixel com ponto flutuante é bad
@@ -0,0 +1,12 @@ | |||
.plus { | |||
padding: 18px; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não usar pixel para padding
, margin
e afins, explico melhor nesse artigo: https://www.linkedin.com/pulse/unidades-css-um-guia-completo-alexandre-gomes/
import iconHover from './iconHover.svg'; | ||
|
||
const html = ` | ||
<a href="#" class="avatarButton" data-select="container"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O nome dessa classe não condiz com o BEM https://getbem.com/introduction/
|
||
const html = ` | ||
<a href="#" class="avatarButton" data-select="container"> | ||
<img class="plus" data-select="image" src="${icon}" alt="" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não nomeie a classe com seu conteudo, no caso icon
é melhor que plus
pq se o icone mudar a classe ainda faz sentido
PR fechado decorrente de inatividade |
Closes #18
Feature
- Issue linked
- Build working correctly
- Tests created
Changelog
N/AVisual evidences 🖼️
-- Normal
--Hover
Checklist