Skip to content
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

fix: curtir fechando container #177

Merged
merged 1 commit into from
Nov 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ const renderPerguntas = async ({
const faqContainer = document.querySelectorAll('.faq-container');

faqContainer.forEach((container) => {
container.addEventListener('click', function () {
const question = container.querySelector('.question');

question.addEventListener('click', function () {
const dropIcon = container.querySelector('.drop');
const content = container.querySelector('.content');

Expand Down
4 changes: 3 additions & 1 deletion mais-buscados/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ const renderMaisBuscadas = async ({ pagina = 1, qtdPorPg = 20, order = 'desc' }
const faqContainer = document.querySelectorAll('.faq-container');

faqContainer.forEach((container) => {
container.addEventListener('click', function () {
const question = container.querySelector('.question');

question.addEventListener('click', function () {
const dropIcon = container.querySelector('.drop');
const content = container.querySelector('.content');

Expand Down
2 changes: 1 addition & 1 deletion mais-buscados/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ main {
}

.faq-container {
cursor: pointer;
font-size: 2rem;
border-radius: 20px;
padding: 1rem 0;
Expand All @@ -70,6 +69,7 @@ main {
color: var(--titulos);
font-size: 3.2rem;
font-weight: 300;
cursor: pointer;
}

.spinnerContainer {
Expand Down
Loading